PHP Classes

Backgrounder: Call background processes

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-01-17 (9 years ago) RSS 2.0 feedStarStarStarStar 65%Total: 1,076 All time: 3,295 This week: 1,031Up
Version License Categories  
backgrounder 1.0GNU General Publi...Language
Description Author  

This class can be used to set up a callback function that will execute even if the user closes the browser window. It is meant to be used in long running processes, like pdf generation.

The callback function at the moment is an e-mail message sent to the user. This can be changed by the developer.

This class forks a process in the Web server and runs the process in a seperate child process until done. This means that the user can carry on using the system in the main process, while the task is completing. Once the child process is done, it will close and do some garbage collection and destroy the child process, finally calling the callback function and sending a mail to let you know its done.

Picture of Paul Scott
Name: Paul Scott <contact>
Classes: 14 packages by
Country: South Africa South Africa
Age: 38
All time rank: 451 in South Africa South Africa
Week rank: 360 Down2 in South Africa South Africa Down
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files  
File Role Description
Plain text file background_class_inc.php Class Class Source
Accessible without login Plain text file example.php Example Example Script

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,076All time:3,295
 This week:0This week:1,031Up
 User Ratings  
 All time