contents of file: content.php
$var_a=("romeo is dead");
$var_b=("the plant suddenly withers");
$var_c=("she things this is funny");
$var_d=("crying");
$var_d=("boo hoo");
contents of file: edit.php
$var_b=("the plant suddenly dies");
$var_d=("weeping");
if ($submit){
$curdir = getcwd();
chdir("includes/");
$dir=opendir('.');
$file=("content.php");
fputs($file," ? ");
chdir($curdir);
closedir($dir);
}
Hi,
I have some hard coded variables that i want to re-write or update in the file.
How do i best update this?
lets says i want to set the hard written text:
$var_b=("the plant suddenly withers");
and
$var_d=("crying");
with these and replace them in the file?
$var_b=("the plant suddenly dies");
$var_d=("weeping");