Open
Description
When developing a desktop application there might be the need to run
a PHP script that does some heavy lifting, thus executes for a
significant amount of time, for that we need to embed a multi-threaded
web server (Issue 14) in the first place.
One way for such an API would be to run php scripts asynchronously
in the background using for example CURL library. It would be nice
if such API provided a way to provide callbacks, so that you can be notified
when the background job finished executing, such callback
might be an URL to a php script or a Javascript function that will
get called in the browser, though javascript callback might be hard
to implement and it is probably only possible if we go with direct
PHP API calls (Issue 3).
Another approach is to create a javascript API for executing php jobs
in background using XMLHttpRequest, this way browser gets notified when
a job has finished and it will play nicely with an embedded web-server.
Original issue reported on code.google.com by [email protected]
on 15 Jan 2013 at 7:09