Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

Re: [PHP3] / Being Relative To The Domain? From: Colin Viebrock (cmv <email protected>)
Date: 01/01/99

> If you set the include_path in php3.ini to
> ../misc:../include or whatever include libraries you use you can do
> require("siteinfo,inc"); and php wiil find the file relative to the current
> site.

... or look at the Apache variabels that get set. This should do the trick:

        require ($DOCUMENT_ROOT."/siteinfo.inc");

- colin

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev <email protected>