NYCPHP Meetup

NYPHP.org

[nycphp-talk] open_basedir is driving me batty

Marc Antony Vose suzerain at suzerain.com
Mon Jul 5 17:28:19 EDT 2004


Hey there:

I'm getting this error when doing a file_exists check to see if a file exists:

Warning: file_exists(): open_basedir restriction in effect. 
File(/home/httpd/vhosts/store.purlsoho.com/httpsdocs/controlroom/handlers/main_h.php) 
is not within the allowed path(s): 
(/home/httpd/vhosts/store.purlsoho.com/httpsdocs:/tmp) in 
/home/httpd/vhosts/store.purlsoho.com/httpdocs/controlroom/index.php 
on line 127

I get the error when the file is not present, even though the passed 
path is within open_basedir's limitations.

Is there any way I can route around this brain-dead open_basedir bug, 
other than prefixing my file_exists() call with a '@'?

-- 
Marc Antony Vose
http://www.suzerain.com/

The surest way to corrupt a youth is to instruct him to hold in 
higher esteem those who think alike than those who think differently.
-- Nietzsche
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040705/45ea23e3/attachment.html>


More information about the talk mailing list