<?php
//Gets the document root
$root = getenv("DOCUMENT_ROOT") ;
Echo $root;
?>
And that's all. These few lines of code should return the document root. Hopefully keeping this small script around will save you future install headaches.
By Angela Bradley, About.com Guide
<?php
//Gets the document root
$root = getenv("DOCUMENT_ROOT") ;
Echo $root;
?>
And that's all. These few lines of code should return the document root. Hopefully keeping this small script around will save you future install headaches.