NYCPHP Meetup

NYPHP.org

[nycphp-talk] File Write Permission Errors - HELP! URGENT!!!

Analysis & Solutions danielc at analysisandsolutions.com
Mon Nov 25 10:33:31 EST 2002


On Mon, Nov 25, 2002 at 07:31:33AM -0500, Phil Powell wrote:

> Warning: fopen("/users/ppowell/web/chat/nicknames.txt", "a") -
> Permission denied in /users/ppowell/web/chat/chat.php on line 163
> ... snip...
> If anyone can help, please tell me what to do, the PHP manuals are not
> giving me a clear solution as to how to write to a file that does not 
> yet exist that has to have the permissions of 0755 for both files.

You need write permissions on the directory in order to be able to create 
files in it.  Remember, the user that PHP is running as is the one you 
need to give the permissions to.

--Dan

-- 
 Bush's proposed Department of Homeland Security would be exempt from:
    * the Freedom of Information Act   * procurement rules
    * labor collective bargaining      * whistle blower protection
 The real goal?  Eliminating government accountability.
 http://www.senate.gov/general/contact_information/senators_cfm.cfm



More information about the talk mailing list