At 2:45 PM +0000 11/16/07, Stut wrote:
It also worth noting that what you're doing there is quite inefficient. I have a similar arrangement where I have a directory containing the include files, but I locate it in a different way. Most sites I deal with have an auto-prepended file containing (among other things) this line...

ini_set('include_path', dirname(__FILE__).'/../code'.PATH_SEPARATOR.ini_get('include_path'));

This adds the code subdirectory (relative to the location of the prepended file) to the include page. I then don't need to worry about where I am when I want to include a file.

When a site goes into production I remove this line and set it in the virtualhost definition since there's no reason to re-calculate it on every request.

-Stut

Thanks, I think.

Now I have to figure out what you did.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to