I should have probably added this to my last note, but if I find I'm having "weirdness" with relative includes I do something like this:

include_once dirname(__FILE__) . "../relative/path/to/script.php";

The __FILE__ constant will resolve to the name of the file it's located in, so you can rely on the relative path to get to where you want it.

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



Reply via email to