Re: Re: help condensing regular expressions

From: Date: Sat, 06 Apr 2002 08:12:43 +0000
Subject: Re: Re: help condensing regular expressions
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-91848@lists.php.net to get a copy of this message
In article <5.1.0.14.0.20020406173112.00af3858@crux.kwikin.com>, 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

« previous php.general (#91848) next »