scd
Jul 21 2004, 10:34 PM
Why
CODE
$f=fopen('newfile','w');
issues
fopen(newfile): failed to open stream: Permission denied in blah instead of creating a new file as it described in php manual (fopen, mode w,a,x: "If the file does not exist, attempt to create it.")?
Vanya
Jul 21 2004, 11:44 PM
PHP scripts work with 'nobody' user UID.
So permissions on needed directory should be set to 777 or 757(**7)
brandon
Jul 22 2004, 04:34 AM
My PHP script started doing this within the last couple days also - it was working perfectly before & I haven't changed anything. My site is on one of your Windows servers, so as far as I can tell, I can't do anything about file/folder permissions. Was something changed on the server side?
I also similar permission errors on the following function calls:
flock(), fgets(), and feof()
scd
Jul 22 2004, 11:25 AM
Thanks Vanya! ?????? ?????????? ???? ????...