PHP with Mike250

How to find my full sitepath?

Having trouble finding the full path in your shared web hosting / VPS?

<?php echo $_SERVER["DOCUMENT_ROOT"];?>

PHP Manual describes it as:

The document root directory under which the current script is executing, as defined in the server's configuration file.

 

Leave a reply