ericmckean / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Builder should auto-recommend $min_symlinks for Apache UserDir #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
// recommend $min_symlinks setting for Apache UserDir
if (0 === strpos($_SERVER["SERVER_SOFTWARE"], 'Apache/')
    && preg_match('@^/\\~(\\w+)/@', $_SERVER['REQUEST_URI'], $m)
) {
    $userDir = DIRECTORY_SEPARATOR . $m[1] . DIRECTORY_SEPARATOR;
    if (false !== strpos(__FILE__, $userDir)) {
        $sm = array();
        $sm["//~$m[1]"] = dirname(dirname(__FILE__));
        echo "\$min_symlinks = " . var_export($sm, 1);
    }
}

Original issue reported on code.google.com by mrclay....@gmail.com on 24 Dec 2009 at 12:45