Page 1 of 1

Include from ROOT

Posted: Mon Dec 26, 2005 6:46 pm
by AliasBDI
To my knowledge, includes using "/" as the root do not work (ex: "/page.php"). Is there an alternative besides using the server path?

Posted: Mon Dec 26, 2005 8:21 pm
by josh
/page.php

should work.. as long as page.php is in the root of the server, if page.php is in the same directory as your script include

page.php

or

/full/path/to/script/page.php



try

Code: Select all

print_r($_SERVER);
to get information about the directories your script is operating under, you can use values from the SERVER superglobal to generate absolute URIs to files on your server