Re: [PHP] Re: help condensing regular expressions

2002-04-06 Thread Tom Rogers
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 [EMAIL PROTECTED], Tom Rogers wrote: Thats what I was after :) Glad I could help. At the top of each page I now do $reltoroot =

Re: [PHP] Re: help condensing regular expressions

2002-04-05 Thread Tom Rogers
Hi Yes that would be fine for the html examples I gave but the real use is for php to find the include directory which I keep out of the server tree, one directory back like this include($relative_root.../include/mysql_connect.inc) Each domain has its own include directory which I want to

RE: [PHP] Re: help condensing regular expressions

2002-04-05 Thread Collins, Robert
: Friday, April 05, 2002 2:33 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: help condensing regular expressions Hi Yes that would be fine for the html examples I gave but the real use is for php to find the include directory which I keep out of the server tree, one directory back like

RE: [PHP] Re: help condensing regular expressions

2002-04-05 Thread Tom Rogers
PROTECTED] Subject: Re: [PHP] Re: help condensing regular expressions Hi Yes that would be fine for the html examples I gave but the real use is for php to find the include directory which I keep out of the server tree, one directory back like this include($relative_root.../include/mysql_connect.inc

Re: [PHP] Re: help condensing regular expressions

2002-04-05 Thread Tom Rogers
Thanks Chris Thats what I was after :) 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 I use the path translated info for pages

Re: [PHP] Re: help condensing regular expressions

2002-04-05 Thread Chris Adams
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