Re: How to set an absolute include path?
| From: | John Nichel | Date: | Mon, 27 Dec 2004 17:02:22 +0000 |
| Subject: | Re: How to set an absolute include path? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205211@lists.php.net to get a copy of this message | ||
Brian Dunning wrote:
Is there a command that will set the include path to the web server 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'); where the above will work no matter from which level it's called. Thanks... - BrianYou can set your include path in a variety of ways... .htaccess (per directory/vhost) httpd.conf (per vhost) php.ini (global) ini_set() (per script) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com