PHP Classes

Backgrounder: Call background processes

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 1,103 All time: 3,404 This week: 660Up
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: 47
All time rank: 471 in South Africa South Africa
Week rank: 178 Down3 in South Africa South Africa Down
Innovation award
Innovation award
Nominee: 4x

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,103
This week:0
All time:3,404
This week:660Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:79%StarStarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1174