php server root code example
Example 1: php document root
<?php echo $_SERVER['DOCUMENT_ROOT'].'/hello.html'; ?>
Example 2: php root path
$_SERVER['DOCUMENT_ROOT']
Example 3: doument root phpp
$RootPath = $_SERVER["DOCUMENT_ROOT"];
<?php echo $_SERVER['DOCUMENT_ROOT'].'/hello.html'; ?>
$_SERVER['DOCUMENT_ROOT']
$RootPath = $_SERVER["DOCUMENT_ROOT"];