Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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;
}
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #unsupported #file #types
ADD COMMENT
Topic
Name
7+8 =