server-info.php 591 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Reports server info useful in configuring the options $min_documentRoot, $min_symlinks,
  4. * and $min_serveOptions['minApp']['allowDirs'].
  5. *
  6. * Change to true to expose this info.
  7. */
  8. $enabled = false;
  9. ///////////////////////
  10. if (!$enabled) {
  11. die('Set $enabled to true to see server info.');
  12. }
  13. header('Content-Type: text/plain');
  14. $file = __FILE__;
  15. echo <<<EOD
  16. __FILE__ : $file
  17. SCRIPT_FILENAME : {$_SERVER['SCRIPT_FILENAME']}
  18. DOCUMENT_ROOT : {$_SERVER['DOCUMENT_ROOT']}
  19. SCRIPT_NAME : {$_SERVER['SCRIPT_NAME']}
  20. REQUEST_URI : {$_SERVER['REQUEST_URI']}
  21. EOD;