...

View Full Version : How do I find out my server path?



liorean
09-17-2003, 10:12 PM
:confused:

mordred
09-18-2003, 12:08 AM
I'm not quite sure if you mean the PATH environment variable or the document root of your website, anyway, I'd upload a small php file and have a look at it's output:



phpinfo();


Down at the bottom is a table with a lot of server-related and environment variables and their values. Hopefully you find the one you need there - it almost always works for me this way. :)

liorean
09-18-2003, 06:07 PM
Oh, I was referring to the internal server path to my directory. I need it for a couple of things and my php knowledge is < 0.

ConfusedOfLife
09-22-2003, 12:13 PM
Then I think you should echo out current working directoy:


echo CURWD(); #might be also CURRWD(), not sure!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum