Re: How to set an absolute include path?

From: Date: Mon, 27 Dec 2004 18:45:00 +0000
Subject: Re: How to set an absolute include path?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-205213@lists.php.net to get a copy of this message
On Mon, 27 Dec 2004 08:27:25 -0800, Brian Dunning <brian@briandunning.com> wrote: > Is there a command that will set the include path to the web server > root? set_include_path($_SERVER['DOCUMENT_ROOT']; > I'm trying to set up a directory structure where include files will be > called from all different folder depths, so I'll need to call them > absolutely like: > > include('/includes/file.php'); include ('includes/file.php'); Note that there is no slash at the begining. > where the above will work no matter from which level it's called. > Thanks... Think this two instructions will help you to solve this. I have not tested today but used similar solutions on the past. Best regards, Jordi.

« previous php.general (#205213) next »