Help - Search - Members - Calendar
Full Version: fopen
Hostony Board > General Support > PHP/MySQL
scd
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.")? unsure.gif
Vanya
PHP scripts work with 'nobody' user UID.
So permissions on needed directory should be set to 777 or 757(**7)
brandon
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
Thanks Vanya! ?????? ?????????? ???? ????... huh.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here