Question : php server on local machine
Answered by : combative-chicken-094vktwgvb15
<?php
// router.php
if (preg_match('/\.(?:png|jpg|jpeg|gif)$/', $_SERVER["REQUEST_URI"])) { return false; // serve the requested resource as-is.
} else { require_once('resolver.php');
}
?>
Source : https://stackoverflow.com/questions/1678010/php-server-on-local-machine | Last Update : Sat, 29 Jan 22