Code: Select all
<?php
// include the variables
include( "http://$_SERVER[HTTP_HOST]/vars.php" );
// display the variables
// this is what doesn't work
echo "$blogRoot<br>";
?>How can I include a file in the root directory of my web site and use it's variables without somthing like "../../vars.php"?