> I think it would be a nice feature of PHP's built-in server to do something similar, automatically provide a `$_ENV[APP_ENV]` variable with a value of `development` so that the application logic knows whether it's running on a localhost development environment rather than on a production server.
Why couldn't you just do ```php if (php_sapi_name() === 'cli-server') { $_ENV['APP_ENV'] = 'development'; } ``` in your entry point script? -- Best regards, Bruce Weirdan mailto: weir...@gmail.com