Heya Newgrounds
How can I change a variable in another file then save that variable - without overwriting the file I already have. Here's what I've got at the moment:
<?php
$newwebsiteurl = $_POST["websiteurl"];
$configurl = "../config.php";
$handler = fopen($configurl, 'a') or die("Can't open conig.php. Please check file path in scripts/savesettings.php.");
$siteurl = $newwebsiteurl;
fclose($handler);
header("Location: ../index.php");
?>
I didn't think the above would work but it was worth a shot.