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
> >
> > $r
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");
>
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
lto:[EMAIL PROTECTED]]
>Sent: 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
TED]]
Sent: 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
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 ke
6 matches
Mail list logo