php current document path code example Example: php serverpath <?php echo $_SERVER['DOCUMENT_ROOT']; ?>