Writing

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:

1
$ python -m SimpleHTTPServer 8000

The PHP way:

1
$ php -S localhost:8000

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

/Calle