Re: Re: help condensing regular expressions
| From: | Tom Rogers | Date: | Sat, 06 Apr 2002 08:35:08 +0000 |
| Subject: | Re: Re: help condensing regular expressions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91849@lists.php.net to get a copy of this message | ||
Hi
I have never used .htaccess but I'll read up on it, I am the ISP so it won't be a problem :)
Tom
At 06:12 PM 6/04/2002, Chris Adams wrote:
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php