Answers for "php unsupported file types"

PHP
0

php unsupported file types

<?php
// router.php
$path = pathinfo($_SERVER["SCRIPT_FILENAME"]);
if ($path["extension"] == "el") {
    header("Content-Type: text/x-script.elisp");
    readfile($_SERVER["SCRIPT_FILENAME"]);
}
else {
    return FALSE;
}
?>
Posted by: Guest on October-23-2021

Browse Popular Code Answers by Language