News Feed
Jobs Feed
Sections




News Archive
Developer Tutorials Blog:
Running background processes in PHP
July 18, 2008 @ 11:18:21

New on the Developer Tutorials blog today is this look at handling background processes from your PHP script:

You've checked and double checked the integrity of user input, and you're doing some serious processing. There's only one problem: it's too slow. There's a simple solution: forking your processing script, and running the code as a background process asynchronously. It can email your user when it's done: they'll wait. In this tutorial, I'll show you how to get started with background processes in PHP.

Akash gives examples of the three keys to background processes - starting the script via an exec, talking to the process by passing additional parameters and including code to monitor the state of the background process via something like a MySQL "sessions" table that the script writes to.

0 comments voice your opinion now!
process background exec parameter mysql session track


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Creating an Online Survey (Part 2)

WebReference.com: Accessing Your MySQL Database from the Web with PHP

DevShed: Using Advanced Functions to Maintain the State of Applications with PHP Sessions

NETTUTS.com: How to Create an Object-Oriented Blog in PHP

Internet Super Hero Blog: MySQL native driver for PHP: mysqlnd-5.0.1-beta available


Community Events









Don't see your event here?
Let us know!


release api phpunit database framework podcast opinion testing introduction language object development composer community code interview zendframework2 example tool unittest

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework