You are here: Re: Permission denied? « PHP Programming Language « IT news, forums, messages
Re: Permission denied?

Posted by Jerry Stuckle on 10/17/06 20:50

fAnSKyer wrote:
> I am trying to make a new file using fopen, but I got a exception:
> failed to open stream: Permission denied in tmp/ ..
>
> I am using linux and I've already chmod the php file to 777.
>
> I tried adding exec("touch afile") in my php program and the result is
> there is no exception but no file come out.
>
> I am confused? how to control the permission in PHP?
> Thanks a lot
>
> fAnS.
>

Do you have permission to create files in tmp/? If this is being done
on a web page, that would be the userid the webserver is running under.

What's the actual fopen() you are using?

--
==================
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

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