Skip to content

Instantly share code, notes, and snippets.

@Zodiac1978
Forked from sergejmueller/info.php
Created June 30, 2017 15:57
Show Gist options
  • Save Zodiac1978/6d34e4fefe697f16b7cdcc9e198ea277 to your computer and use it in GitHub Desktop.
Save Zodiac1978/6d34e4fefe697f16b7cdcc9e198ea277 to your computer and use it in GitHub Desktop.
Ausgabe des DocumentRoot-Verzeichnises. Notwendig als Ersatz für die nicht verfügbare Apache (.htaccess) DocumentRoot-Direktive. http://httpd.apache.org/docs/2.0/mod/core.html#documentroot
<?php echo rtrim($_SERVER['DOCUMENT_ROOT'], '/') ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment