Help with PHP require_once() ?

Nathan

New member
I have a folder called T, with the folders News and Contact inside. Inside the Contact Folder is another folder called _lib, and inside that folder is global.php. If I've confused you that's T/Contact/_lib/global.php. I have index.php inside the Contact folder (T/Contact/index.php). From this index.php file, I can successfully run the command:

require_once "_lib/global.php";

Now, I also have another index file at T/Contact/index.php. When I try this command, it obviously doesn't work. When I try "Contact/_lib/global.php" it doesn't work either. So, when I try the entire URL:

require_once "http://www.MYSITE.com/T/Contact/_lib/global.php";

I get an error message saying my browser does not support full URL insertion. What command do I do to get down to the root directory and then up to global.php?
 
Back
Top