Include from ROOT
Moderator: General Moderators
Include from ROOT
To my knowledge, includes using "/" as the root do not work (ex: "/page.php"). Is there an alternative besides using the server path?
/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 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
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);