Re: reading/writing files outside of web root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 09 February 2005 02:31, Richard Lynch wrote:
> Phil Ewington - 43 Plc wrote:
> > For some reason user_prefs will not open
> > for read/write even when I tested it under apache.apache and chmod'd
> > to 755,
> > perhaps because /home is owned by root?
>
> Something went wrong with this test.
>
> You SHOULD have been able to read/write that file in PHP, assuming
> 'apache' is the user PHP runs as.  Use http://php.net/phpinfo to
> confirm that it really *IS* 'apache' user that's running apache/php.

It *will* fail if apache has no access to $HOME!

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
New Year Resolution: Ignore top posted posts

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux