write to file? acces denied?
Posted: Mon Jun 03, 2002 12:54 pm
hey,
I got myself into trouble...
i wrote a guestbookscript which writes and reads from a textfile but it cant write to the text file; reading it doesn't seem to be a problem
when i try to write it gives following error:
"Warning: fopen("test.txt","w") - Permission denied "
i tried several things like filling in r+, a+, even "b" instead of "w" but it doesn't seem to work no matter what i try...
does this have to do with the server?
hope you guys can help me out...
greets opcd
I got myself into trouble...
i wrote a guestbookscript which writes and reads from a textfile but it cant write to the text file; reading it doesn't seem to be a problem
when i try to write it gives following error:
"Warning: fopen("test.txt","w") - Permission denied "
i tried several things like filling in r+, a+, even "b" instead of "w" but it doesn't seem to work no matter what i try...
Code: Select all
<?php
$fileopenen = fopen($filepath, "a");
fwrite($fileopenen,$toevoegsel);
fclose($fileopenen);
?>hope you guys can help me out...
greets opcd