Forum Moderators: phranque
include($_SERVER["DOCUMENT_ROOT"].'foo/foo.php'); C:/xampp/htdocsfoo/foo.php [edited by: phranque at 10:06 pm (utc) on Aug 27, 2013]
[edit reason] disabled graphic smileys [/edit]
include($_SERVER["DOCUMENT_ROOT"].'foo/foo.php');
The document root directory under which the current script is executing, as defined in the server's configuration file.
[php.net...]
Technically /the-path/to-the-file/ is the path of the defined index file of the directory, not the path of the root directory the current file is running under.