PHP display current server path
echo $_SERVER["DOCUMENT_ROOT"];
'DOCUMENT_ROOT' The document root directory under which the current script is executing, as defined in the server's configuration file.
http://php.net/manual/en/reserved.variables.server.php
If you call getcwd it should give you the path:
<?php
echo getcwd();
?>