Skip to content

Example of running php jobs in background #15

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions