Forum Moderators: coopster

Message Too Old, No Replies

$DOCUMENT ROOT issue

php directory structure issue

         

tabish

8:23 am on Jan 5, 2007 (gmt 0)

10+ Year Member



hello all,

I have few files under "config" directory in my main domain. Now when i access those files using $DOCUMENT ROOT from a subdomain.. it gives error..

Files which are in "config" directory are using $DOCUMENT_ROOT to include few files..

when i access.. say /home/domain/config/config.php in my forum.domain.com it gives error because config.php is using $DOCUEMNT_ROOT to include few files..

Can anyone tell me how can i define my document root in a subdomain?

Regards
tabish

jatar_k

2:22 pm on Jan 5, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I think the best bet is to include files using explicit paths

if there are different files included for each sub domain then you may want to look at having individual config files

you could also try echo'ing the doc root so you can see in each subdomain where it is looking for the files and find something that will work for all

coopster

5:52 pm on Jan 5, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



A relative thread that might be helpful ...
[webmasterworld.com...]