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

Lorna Mitchell's Blog:
PHP 5.4 Built In Webserver
January 30, 2012 @ 11:35:09

Lorna Mitchell has posted a quick tutorial about a feature of the upcoming PHP 5.4 release, the built-in web server, and some tips on doing things like routing requests and changing the hostname.

One of the big features arriving with PHP 5.4 is the addition of a built-in basic webserver for use in development environments. Quite a few of the other scripting languages have something like this so I'm very pleased to see it in PHP. Using a server like this makes it easy to quickly try out some scripts without needing to configure apache or really do anything much! I had to look up a few things to get started, so I thought I'd write them down for posterity.

She includes instructions on how to get the server up and running from the command line, updating the location of the document root with a command line option and using a simple "routing.php" script to act as a front controller. Changing the hostname is as simple as changing "localhost" to something else when starting the server.

0 comments voice your opinion now!
webserver builtin configure tutorial server


blog comments powered by Disqus

Similar Posts

Alexey Zakhlestin's Blog: PHP+SCGI part 2: problem with eZComponents

PHPBuilder.com: Using XML - Part 6: Validation

IBM developerWorks: Developing PHP the Ajax way, Part 2 - Back, Forward, Reload

DZone.com: Phar: PHP libraries included with a single file

OpenShift Blog: Integrate PHPStorm and SFTP into OpenShift


Community Events











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


introduction package overview podcast code install framework release hhvm language example symfony2 composer component application unittest security opinion facebook hack

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