I am still having problems getting php to work. I removed all php program files from the linux server, then recompiled and installed php again.
I can append to a file using fwrite but cannot use the option "w" to write to a file. I am testing it using a very simple write:
<?
$line = "Written!";
// Open the file and erase the contents if any
$fp = fopen("test.inc", "w") or die("Couldn't open the file");
//Write the data to the file
fwrite($fp, $line) or die("Couldn't write to file");
// Close the file
fclose($fp);
echo "Done.";
?>
Can anyone advise?
Rninja
I can append to a file using fwrite but cannot use the option "w" to write to a file. I am testing it using a very simple write:
<?
$line = "Written!";
// Open the file and erase the contents if any
$fp = fopen("test.inc", "w") or die("Couldn't open the file");
//Write the data to the file
fwrite($fp, $line) or die("Couldn't write to file");
// Close the file
fclose($fp);
echo "Done.";
?>
Can anyone advise?
Rninja
