If you ever thought about, using PHP for creating an desktop application, then you should have a look at Roadsend.
Roadsend is a PHP compiler which is able to create native binaries, if you want, with an web server (a so called microserver) integrated.