Re: Setting or Getting Relative Path for PHP Includes
| From: | Richard Lynch | Date: | Tue, 21 Dec 2004 19:27:05 +0000 |
| Subject: | Re: Setting or Getting Relative Path for PHP Includes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204871@lists.php.net to get a copy of this message | ||
Anthony Baker wrote:
> I often use PHP includes in my files to pull in assets, but I hard code
> the relative path to the root html directory for the sites that I'm
> working on in each file. Example below:
While I happen to think using include_path and $_SERVER is a better
solution to setting up your environment, what you describe as what you
want more closely fits php.ini's auto_prepend_file and nobody has
suggested that yet.
--
Like Music?
http://l-i-e.com/artists.htm