Skip to content

Instantly share code, notes, and snippets.

@jeremykendall
Created February 17, 2016 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremykendall/8ff268b5be734294b026 to your computer and use it in GitHub Desktop.
Save jeremykendall/8ff268b5be734294b026 to your computer and use it in GitHub Desktop.
Built in PHP web server routing issue
<?php
// This goes in app root
$_SERVER['SCRIPT_NAME'] = 'index.php';
include 'public/index.php';
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