Posted by Matthias Braun on 07/22/05 18:30
Help!
I am using SuSE 9.3, php5 and Apache2 on Linux. I try to write files to
the hard drive using the following command:
$filename = "test.txt";
if (!file_exists($filename))
touch($filename);
if (is_writable($filename))
$myfile = fopen( $filename,'w+');
else
{
echo "Cannot write to file ($filename)";
exit(1);
}
The script neither creates a file nor open it for writing. When using
the same script on Windows everything works fine so I think it is a
permission problem.
Thanks in advance,
Matthias
[Back to original message]
|