ActivePHP Interface

Scripts

Output

Debugging

What is this?

ActivePHP is something I devised out of boredom-- it occurred to me that with multiple simultaneous XMLHttpRequests, PHP scripts could communicate with the client at run-time. It's sort of anti-logic to the format most sites use today.

What is this good for? My guess is, absolutely nothing. Though I do find it amusing to port my basic Java programs over to PHP.

Source code and usage

First things first: usage rights-- use it for whatever you want, modify it freely; you don't have to credit me but it'd be much appreciated.

It's rather simple to use, though somewhat lacking in features at the moment. If you copy+paste the source directly to your webserver, it should work. Make sure you mod the permissions on the requests folder to allow PHP scripts to create files and write to them. Check out the source code of the example files (name.php, typewriter.php, etc.) to get an idea of how to use it. The core library file (active_php.php) also provides some documentation in the form of inline comments.

Download ActivePHP (last updated November 25, 2009 at 7pm)