News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
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.

1 comment voice your opinion now!
pdo pgsql postgresql mail cli background batch processing pdo pgsql postgresql mail cli background batch processing




Similar Posts

Mikko Koppanen's Blog: Choosing watermark color based on the background luminosity

Wez Furlong's Blog: Background/batch/workflow processing with PDO::PGSQL

Tobias Schlitt's Blog: Free eZ components sessions -2-

Internet Super Hero Blog: mysqlnd to support PDO, mysqlnd in PHP 5.3

Pierre-Alain Joye's Blog: Windows fixes release for Zip, fopen(,"rb") may not be binary safe


Community Events







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


release PEAR code zendframework database releases ajax security mysql cakephp developer application example book conference PHP5 zend package job framework

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