You are here: Re: Cannot create a file using php on appache web server « PHP Programming Language « IT news, forums, messages
Re: Cannot create a file using php on appache web server

Posted by Jerry Stuckle on 09/13/07 20:26

tedpottel@gmail.com wrote:
> Hi,
>
> I have a local webserver/php develpment system running under windows
> xp,
> the following line works fine
> $handle = fopen("ted.txt", "w");
>
> but when I try to run it on my hosting account, it gives me the
> following error
> Warning: fopen(ted.txt) [function.fopen]: failed to open stream:
> Permission denied in /home/allthing/public_html/test.php on line 13
> coulf not open file
>
> On a uniz web server how do I set the file permissions???
>

*Permission denied*

That tells you right there what the problem is. The web server user
doesn't have the authority to open the file.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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