how to set php document root from cli code example Example: php document root <?php echo $_SERVER['DOCUMENT_ROOT'].'/hello.html'; ?>