Page 1 of 1

How do I get the website address?

Posted: Wed Jan 17, 2007 11:43 am
by nadavvin
How do I get the website address or at least the path to the working file?

The problem is that I have class which use one xml file and becase I use the class from different directories, the relative path change and the class didn't found the xml.

Posted: Wed Jan 17, 2007 11:46 am
by feyd
look in $_SERVER.

Posted: Wed Jan 17, 2007 11:50 am
by aaronhall