Open your apache's httpd.conf file:

see anything like this on VHost configuration of the site in question?

        ####    JI Admin Database
        <VirtualHost 1.0.0.10>
            ServerAdmin [EMAIL PROTECTED]
            DocumentRoot D:/JI_admin
            ServerName admin
            ErrorLog logs/JI_admin-error.log
            CustomLog logs/JI_admin-access.log common
        </VirtualHost>


that   

        DocumentRoot D:/JI_admin

is exactly what your 

        $DOCUMENT_ROOT

should be returning.

I think that is where your problem.


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 2:54 AM
To: PHP General Mailing List
Subject: [PHP] DOCUMENT_ROOT


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]

Reply via email to