Forum Moderators: coopster

Message Too Old, No Replies

Whatever happened to DOCUMENT ROOT?

         

theskintman

9:03 am on Jul 29, 2009 (gmt 0)

10+ Year Member



On servers in PHP4/Apache1.3 times, I have always used DOCUMENT_ROOT in includes, and DOCUMENT_ROOT has always returned the correct server path to my root directory.

Recently, I have set up two new sites on PHP5/Apache2 hosts (different providers). On both of these two servers, DOCUMENT_ROOT returns what I believe to be an incorrect value, in that it isn't the path to my root directory at all. For example, on one server, it returns:

/admin/www/

Whereas my true DOCUMENT_ROOT is:

/home/user846732/website/

Is this a new 'feature', or have I just been unlucky to grab two hosts who return an incorrect DOCUMENT_ROOT?

jatar_k

12:06 pm on Jul 29, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



sounds like unlucky, have you tried the paths? it could some kind of funky mapping or a VPS