NO, not the directory of the current script.
the directory of your virtual host.
DOCUMENT_ROOT is your WEB ROOT
common. I gave an example... look into your apache (vHOST) DocumentRoot is
what your $DOCUMENT_ROOT is
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-----Original Message-----
From: Jordan Elver [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 7:03 PM
To: Yasuo Ohgaki
Cc: PHP General Mailing List
Subject: Re: [PHP] DOCUMENT_ROOT
Thanks for the reply,
I'm not using virtual hosts on my local machine but I am on the production
machine. What should DOCUMENT_ROOT return? I though it returns the directory
of the current script. So if I had a site in
/usr/local/apache/htdocs/cha/script.php then I would expect DOCUMENT_ROOT to
return /usr/local/apache/htdocs/cha/, is that right?
Is it posible to setup a virtual host on localhost?
Cheers,
Jord
On Wednesday 25 April 2001 01:05, you wrote:
> If you are using Apache virtual host, it will set virtual host's document
> root. Is this what you want?
>
> Regards,
> --
> Yasuo Ohgaki
>
>
> "Jordan Elver" <[EMAIL PROTECTED]> wrote in message
> 01042417535900.00987@localhost">news:01042417535900.00987@localhost...
>
> > Hi,
> > Has any got any idea why $DOCUMENT_ROOT returns /usr/local/htdocs on my
> > home machine but it should return /usr/local/htdocs/sitename or where
> > ever I put it, but on my production machine it return what it should
like
> > /usr/local/sitename or whatever?
> >
> > I'm trying to use it to help include files in different directories (see
> > my previous post, site structure). Got any ideas about this?
> >
> > Cheers,
> >
> > Jord
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]