Forum Moderators: coopster
I have a file in a directory called movie.avi with 1mb. The directory is 777.
I issue command:
$writeback = fopen("movie.avi", "w");
and get:
Warning: fopen("movie.avi", "w") - Permission denied in ... on line 66
Why does it do this, it should overwrite the existing file...
If I choose a different file name, one that didn't exist originally in the directory, it writes it no problem, over and over again. Of course it is always 0 bytes..
Any idea why this might be happening. Could it be someone else is downloading the file from my server as I'm trying to issue this command?