First serverside code.

Note that this code can't run on github, you have to run it on a server
that supports php.