Created
April 13, 2016 13:40
-
-
Save madalinignisca/5f24f5fa15c23e68fd94146d4a13b13c to your computer and use it in GitHub Desktop.
basic PHP router for built in server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!file_exists(__DIR__ . '/' . $_SERVER['REQUEST_URI'])) { | |
$_GET['_url'] = $_SERVER['REQUEST_URI']; | |
} | |
return false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment