note 105285 deleted from features.commandline.webserver by danbrown

From: Date: Mon, 08 Aug 2011 14:50:33 +0000
Subject: note 105285 deleted from features.commandline.webserver by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-182332@lists.php.net to get a copy of this message
Note Submitter: matthewkastor at gmail dot com ---- PHP 5.4, brand new stuff. :D This is awesome. What I'm assuming is that I'll now be able to write small applications that have a web based gui, without installing apache, iis, or another server. So, say I wanted to write a small tool for a friend. Let's also say that my friend is a point and click kind of girl. Before, I had to get a portable server, install PHP on it, install my scripts, zip everything up, email it, and then sort out various issues. Now it looks like I'll be able to send her a zip file with just the PHP CLI and whatever extensions it may need. I'll be able to configure a batch file or shell script to start the PHP CLI, then have my PHP scripts start the webserver and use exec or a similar function to open the web browser at the appropriate location. This will be much easier to troubleshoot. I can check for an unused port with the batch file or shell script, and pass the port number to the PHP script in a number of ways. The only thing to worry about is making sure the PHP CLI and extensions are compiled for her machine architecture. After that it's a simple matter of configuring the firewall (if necessary) and setting the proper permissions to allow the CLI to start the server (again, if necessary). This is good. If it works well enough and she's using a new browser I'll be able to use HTML5, JavaScript, and PHP to build user interfaces for simple scripts. :D What I like the most is that I'll be able to make something useful for my friend, and I don't have to scare her by saying "install the server" or "now go to the command prompt and..." We could do this all before with sockets: yes but, it was more complicated. PHP is Awesome. :D

« previous php.notes (#182332) next »