Created
February 17, 2016 23:17
-
-
Save jeremykendall/8ff268b5be734294b026 to your computer and use it in GitHub Desktop.
Built in PHP web server routing issue
This file contains 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 | |
// This goes in app root | |
$_SERVER['SCRIPT_NAME'] = 'index.php'; | |
include 'public/index.php'; |
This file contains 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 -S 0.0.0.0:8888 -t public router.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment