PHP Classes
elePHPant
Icontem

No Timeout: Split the execution of long tasks in small steps

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (21)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-10-24 (8 years ago) RSS 2.0 feedStarStarStarStar 74%Total: 5,397 This week: 5All time: 420 This week: 369Up
Version License Categories  
obuffer 1.0.0Free for non-comm...PHP 5, Utilities and Tools, AJAX
Description Author  

This package can be used to split the execution of long tasks in small steps implemented by requests short enough to not exceed the PHP script execution timeout.

It uses AJAX requests to invoke each execution step. The response of the execution of each step is used to update a section of the page where the progress feedback is displayed.

The class can execute steps of several types built-in actions like database queries, search for a pattern in a file and retrieve a file blocks or lines.

Innovation Award  
PHP Programming Innovation award nominee
October 2006
Number 5


Prize: One subscription to the PDF edition of the magazine by PHP Architect
Some PHP applications need to perform actions that take a long time to execute. However, in many PHP environments it is not possible to execute tasks that exceed 30 seconds, which the PHP default script execution limit.

This package provides a work around to that limit. It provides means to split long tasks in many small steps, each one should not exceed the PHP script execution limit.

It uses AJAX to automatically send requests to the Web server to execute each task step and give progress feedback on the browser, until the whole task is done.

Manuel Lemos
Picture of Johan Barbier
Name: Johan Barbier <contact>
Classes: 17 packages by
Country: France France
Age: 43
All time rank: 422 in France France
Week rank: 78 Down3 in France France Down
Innovation award
Innovation award
Nominee: 6x

  Files folder image Files  
File Role Description
Files folder imageclass (2 files)
Files folder imagescripts (6 files)
Accessible without login Plain text file email.php Example example
Plain text file email.txt Data data
Accessible without login Plain text file index.php Example exemple
Accessible without login Plain text file index2.php Example example
Accessible without login Plain text file index3.php Example example
Accessible without login Plain text file index4.php Example example
Accessible without login Plain text file index5.php Example example
Plain text file index6.php Example Example using 2 simultaneous threads
Accessible without login Plain text file readme.txt Doc. doc
Plain text file test.sql Data sql file test
Plain text file test.xml Data test file
Plain text file texte.txt Data test file
Plain text file typewriter.php Example fun example uysing JS TIMEOUT property

  Files folder image Files  /  class  
File Role Description
  Accessible without login Plain text file class.noTimeOut.js Data noTimeOut js class
  Accessible without login Plain text file class.noTimeOut.php Class NoTimeOut PHP class

  Files folder image Files  /  scripts  
File Role Description
  Accessible without login Plain text file arrayFetch.php Appl. script
  Accessible without login Plain text file dbFetch.php Appl. script
  Plain text file emailSend.php Appl. script sending emails
  Accessible without login Plain text file fileFetch.php Appl. script
  Plain text file fileFetchLine.php Appl. script
  Accessible without login Plain text file filePatFetch.php Appl. script

 Version Control Unique User Downloads Download Rankings  
 0%Total:5,397All time:420
 This week:5This week:369Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:81%StarStarStarStarStar
Tests:-
Videos:-
Overall:74%StarStarStarStar
Rank:88