Re: [PHP] document root variable or function

2002-05-17 Thread Michael Virnstein

$_SERVER["DOCUMENT_ROOT"]

"Jason Wong" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Friday 17 May 2002 20:56, [EMAIL PROTECTED] wrote:
> > Is there a variable in PHP which will show the directory of the document
> > root? I have done a few searches and before I go looking harder I
thought
> > I'd ask. My problem is that I am using both windows, IIS and linux,
Apache.
> > I tried a few things like $document_root which didn't seem to work but I
> > didn't try very hard :)
>
> phpinfo()
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> the router thinks its a printer.
> */
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] document root variable or function

2002-05-17 Thread Jason Wong

On Friday 17 May 2002 20:56, [EMAIL PROTECTED] wrote:
> Is there a variable in PHP which will show the directory of the document
> root? I have done a few searches and before I go looking harder I thought
> I'd ask. My problem is that I am using both windows, IIS and linux, Apache.
> I tried a few things like $document_root which didn't seem to work but I
> didn't try very hard :)

phpinfo()

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
the router thinks its a printer.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] document root variable or function

2002-05-17 Thread webmaster



Is there a variable in PHP which will show the 
directory of the document root? I have done a few searches and before I go 
looking harder I thought I'd ask. My problem is that I am using both windows, 
IIS and linux, Apache. I tried a few things like $document_root which didn't 
seem to work but I didn't try very hard :)
 
Below is an example of what I want to 
do:

include "(magic variable or function)/$file;
JJ Harrison[EMAIL PROTECTED]www.tececo.com
P.S. Can anyone suggest a good text 
editor for PHP and html?
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php