[vox-tech] Re: php and including with absolute paths

Peter Jay Salzman p at dirac.org
Tue Jan 17 11:06:10 PST 2006


On Tue 17 Jan 06,  1:57 PM, p <p> said:
> Is it possible to ask PHP to include/require files with an absolute pathname
> rather than pathname relative to PHP's search path?  I'd like to do
> something along the lines of:
> 
>    require_once('/www/foo/bar.php');
> 
> As far as I can tell, these functions only look for files relative to the
> PHP include path which is often, but not always, convenient.
> 
> Thanks,
> Pete

Ach.  Never mind, I was wrong.


More information about the vox-tech mailing list