In article <[EMAIL PROTECTED]>, Tom
Rogers wrote:
> Thats what I was after :)
Glad I could help.
> At the top of each page I now do
>
> $reltoroot = preg_replace("|/[^/]+|", "../", dirname($_SERVER['PHP_SELF']));
> ini_set ("include_path",ini_get("include_path").":".$reltoroot."../include");
>
> which takes care of the include path
Out of curiosity, couldn't you put something like
php_value include_path .:/document/root/include:/usr/lib/php
in a .htaccess file? Or has your ISP disabled .htaccess files?
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php