how to get local server path in php code example Example: php serverpath <?php echo $_SERVER['DOCUMENT_ROOT']; ?>