News Feed
Sections




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

Wez Furlong's Blog:
Background/batch/workflow processing with PDOPGSQL
October 27, 2006 @ 08:42:00

Wez Furlong wants a bit more out of his PHP script, naemly the ability to be able to process things in the background without tying up or immediately using the script that's running.

In my recent talk on sending mail from php I mention that you want to avoid sending mail directly from a web page. A couple of people have asked me how to implement that, and one of the suggestions I have is to queue your mail in a database table and have some other process act on that table.

He gives a solution that's a bit more optimized for this solution than just polling the same information over and over - using PDO and LISTEN/NOTIFY processing along with transactions to make the CLI script only grab information when there's something new.

0 comments voice your opinion now!
pdo pgsql postgresql mail cli background batch processing pdo pgsql postgresql mail cli background batch processing


blog comments powered by Disqus

Similar Posts

Chris Shiflett's Blog: OWASP PHP Top 5

Ralph Schinlder's Blog: PHPundamentals Series: A Background on Statics (Part 1 on Statics)

PHPEasy.co.uk: Object Orientation Basics part 4 Implementing CRUD methods

AlternateInterior.com: Multi-Threading Strategies in PHP

Wez Furlong\'s Blog: Upcoming Conference Appearances


Community Events





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


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

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