path to document root php code example
Example 1: php document root
<?php echo $_SERVER['DOCUMENT_ROOT'].'/hello.html'; ?>
Example 2: php root path
$_SERVER['DOCUMENT_ROOT']
<?php echo $_SERVER['DOCUMENT_ROOT'].'/hello.html'; ?>
$_SERVER['DOCUMENT_ROOT']