mirror of
https://github.com/mrclay/minify.git
synced 2025-08-20 12:51:52 +02:00
Collapse "min" into project root and get unit tests working.
Fixes #472
This commit is contained in:
25
server-info.php
Normal file
25
server-info.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Reports server info useful in configuring the options $min_documentRoot, $min_symlinks,
|
||||
* and $min_serveOptions['minApp']['allowDirs'].
|
||||
*
|
||||
* Change to true to expose this info.
|
||||
*/
|
||||
$enabled = false;
|
||||
|
||||
///////////////////////
|
||||
|
||||
if (!$enabled) {
|
||||
die('Set $enabled to true to see server info.');
|
||||
}
|
||||
|
||||
header('Content-Type: text/plain');
|
||||
|
||||
$file = __FILE__;
|
||||
echo <<<EOD
|
||||
__FILE__ : $file
|
||||
SCRIPT_FILENAME : {$_SERVER['SCRIPT_FILENAME']}
|
||||
DOCUMENT_ROOT : {$_SERVER['DOCUMENT_ROOT']}
|
||||
SCRIPT_NAME : {$_SERVER['SCRIPT_NAME']}
|
||||
REQUEST_URI : {$_SERVER['REQUEST_URI']}
|
||||
EOD;
|
Reference in New Issue
Block a user