note 104849 deleted from features.commandline.webserver by danbrown
| From: | danbrown@php.net | Date: | Wed, 04 Apr 2012 15:40:35 +0000 |
| Subject: | note 104849 deleted from features.commandline.webserver by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-186966@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
From Ralph Schindler's mail http://news.php.net/php.internals/53870:
If you choose to put your index.php in as the router, then your
index.php should be cli-server aware:
<?php
if (php_sapi_name() == 'cli-server') {
/* route static assets and return false */
}
/* go on with normal index.php operations */