News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DZone.com:
PHP 5.4 Will Have a Built-in Web Server
October 24, 2011 @ 09:24:01

As is mentioned in this new post to DZone.com, one of the features of the upcoming PHP 5.4 release, including things like traits and array dereferencing support, will also have an interesting new feature - a built-in simple web server.

Yet another new feature to look forward to in PHP 5.4.0 - the CLI SAPI will now provide a built-in web server which is geared toward developmental purposes. It shouldn't be used in production right now.

The PHP manual has been updated with the latest on this upcoming feature:

URI requests are served from the current working directory where PHP was started, unless the -t option is used to specify an explicit document root. [...] If a PHP file is given on the command line when the web server is started it is treated as a "router" script for the web server. The script is run at the start of each HTTP request. If this script returns FALSE, then the requested resource is returned as-is. Otherwise the script's output is returned to the browser.

The PHP 5.4.x series is still in beta as of the time of this post - you can download the beta1 on the downloads section of the PHP site (or the Windows binaries).

0 comments voice your opinion now!
webserver builtin server beta1 download


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso: Building a simple API proxy server with PHP

Greb Beaver\'s Blog: Chiara_PEAR_Server 0.18.4 released

Andries Seutens' Blog: Zend Framework, just get me started, okay?

Stefan Esser's Blog: Suhosin 0.9.21 - XSS Protection

Edin Kadribasic's Blog: PHP 4.4.5-win32 with MySQL 5.0.22


Community Events











Don't see your event here?
Let us know!


example unittest release language podcast composer hhvm project symfony2 security facebook application install database hack package framework component introduction performance

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework