You are here: Re: Permission Denied when writing to a file « PHP Programming Language « IT news, forums, messages
Re: Permission Denied when writing to a file

Posted by Michael Trausch on 04/04/06 03:49

mouseit101 wrote:
> Whenever i try to write to a file i get:
> Warning: fopen(dateLogFile.txt): failed to open stream: Permission
> denied in **********.com/php/dateLog.php on line 10
>

If you're running on a UNIX-like system, you need to use chmod on the
command line or otherwise manipulate the file permissions, like via SFTP.

'man chmod' (without the quotes) will get you the information that you need.

In short, the web server traditionally runs as a user and group
different from your own, so the file needs o+rw permissions to be read
and written to, respectively.

- Mike

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация