Hi,
I am getting mkdir() failed (Permission denied) when calling mkdir($foo, 0777);
I have looked over my php.ini file and do not see where I could change this permissions issue.
Anyone have any idea?
Thanks!
Hi,
I am getting mkdir() failed (Permission denied) when calling mkdir($foo, 0777);
I have looked over my php.ini file and do not see where I could change this permissions issue.
Anyone have any idea?
Thanks!
Yes you do not have access to write dir's from the file. You will need to change your permissions. Use a 775 or 777. Check with your ISP and this has nothing to to with your php.ini file btw. Take care and hope it all helped!
Thanks for the reply.
The script is running on my local machine which is winXP pro with IIS 5 and PHP 4.
I assume I need to give 777 access to php scripts but thought maybe that was somewhere in php.ini. Is there somwthing else that could be causing this?
:: Maybe a little off topic ::
I am also experiencing an error where I get "HTTP/1.1 502 Gateway Error Server: Microsoft-IIS/5.1 Date: Fri, 14 Feb 2003 19:27:08 GMT Connection: close Content-Length: 186 Content-Type: text/html CGI Timeout The specified CGI application exceeded the allowed time for processing. The server has deleted the process. ". I have set php.ini max_execution_time to 86400 (more than enough). Is this an error given by IIS? And where can I get more info on this? (I have tried search various places.)
Thanks again.
OMG IIS!!! GESSUS! I HATE IIS! Get apache for the love of god! www.apache.org GET IT! It runs circles around IIS in a hearbeat. PLUS you don't have to pay bill anymore money. Which is always a good thing. Hmm... you can FTP into your own box and use an FTP program to set the permissions. Which you can use Bullet FTP Server (www.download.com (trial only) ) and then do it from any WS-FTP program or something like that. Other than that just get a crappy computer you hate and put a form of Linux or Unix on it (http://www.slackware.com/getslack/) and run your stuff from there. After you get the server working all nice and clean and you give your file permission to create a directory and whatnot then you will be good to roll.
Good luck!