News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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

Maggie Nelson's Blog: How to (and how not to) pass an array from PHP to the database

Community News: rPath Updates PHP, PHP-MySQL and PHP-PGSQL Packages

Edin Kadribasic's Blog: PHP 4.4.3 for Windows with 5.0.22 MySQL libraries

Matthew Turland's Blog: CDC Update (or an Unusual Parse Error)

Developer.com: Creating a Code Search Engine with PHP and MySQL


Community Events





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


introduction community opinion list library release framework laravel artisanfiles tool symfony version voicesoftheelephpant security language podcast composer series conference interview

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