Simple Web Server

When hacking around in HTML and Javascript and other web stuff I sometimes want to start a local web server for testing the code.

This can be done very easily.

The python way:

$ python -m SimpleHTTPServer 8000

The PHP way:

$ php -S localhost:8000

Both serves file in the current directory. The example port 8000 can be change to suit your needs.