I have a script that simple takes a variable and places it into a file. Problem is lately the scripts don't write to the file and instead clear the file entirely.
I try in command line on the linux box and it does write, but when launched on the web does not.
Can any one assist? Here is the code:
$line = "Here is the sentence";
// Open the file and erase the contents if any
$fp = fopen("test.inc", "w");
//Write the data to the file
fwrite($fp, $line);
// Close the file
fclose($fp);
echo "Done.";
Rninja
I try in command line on the linux box and it does write, but when launched on the web does not.
Can any one assist? Here is the code:
$line = "Here is the sentence";
// Open the file and erase the contents if any
$fp = fopen("test.inc", "w");
//Write the data to the file
fwrite($fp, $line);
// Close the file
fclose($fp);
echo "Done.";
Rninja
