The making of TSW WebCoder 2013 part 14 – PHP Development Server

November 20, 2012

In version 5.4 of PHP, the team behind PHP did something really, really great: They included a built-in webserver. This means that you can now test your PHP code on your Windows machine without having to run a full-blown webserver like Apache. This also saves you from having to setup Apache and PHP to work together - everything can now be done by downloading PHP and running a simple command. TSW WebCoder 2013 takes full advantage of this - the PHP Development Server has been thought into all parts of this version. You can preview and even debug your PHP code in WebCoder through this built-in webserver, and the best part is that WebCoder can set it all up for you!

First of all, whenever you try to debug or preview a PHP file, WebCoder will check for a valid server mapping. If none is found, you will be presented with a dialog like this (the values are automatically filled, based on the location of your file):


With a single click you can either start up a new Development Server instance and have your code previewed through it, or you can create a new server mapping - the values have already been pre-filled and should be ready to use.

If you haven't already downloaded PHP, WebCoder will prompt you to do it with this dialog:


Simply click the Download button and a ZIP file will be automatically downloaded and extracted, ready for you to use.

If you use the PHP Development Server, setting up debugging is literally a breeze - allow WebCoder to download PHP for you and it will automatically configure it for debugging on your machine. I have spent a lot of time making it much easier to use and setup debugging, which you will see very soon, once the first beta version is released. As always, stay tuned, and let me know what you think so far :)

Kasper (TSW) @ 11:31 am in TSW,WebCoder

2 Responses to “The making of TSW WebCoder 2013 part 14 – PHP Development Server”

  1. Pelle Ravn says:

    This is so cool! This might just be the feature I’m looking the most forward to try out of the new version! :)

  2. Kasper (TSW) says:

    Thanks Pelle, I’m very pleased to hear that! During the development phase, where I have been using WebCoder a lot for various PHP projects, this is probably also one of the features that has excited me the most :)

Leave a Reply