note 114492 deleted from features.commandline.webserver by cmb

From: Date: Tue, 01 Sep 2015 17:01:44 +0000
Subject: note 114492 deleted from features.commandline.webserver by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-203556@lists.php.net to get a copy of this message
Note Submitter: tobi at saibotd dot com ---- A more complete example of a router file: <?php // router.php $route = parse_url(substr($_SERVER["REQUEST_URI"], 1))["path"]; if (is_file($route)) { if(substr($route, -4) == ".php"){ require $route; // Include requested script files exit; } return false; // Serve file as is } else { // Fallback to index.php $_GET["q"] = $route; // Try to emulate the behaviour of your htaccess here, if needed require "index.php"; } This should give you a basic development enviroment.

« previous php.notes (#203556) next »