Login   Register  
PHP Classes
elePHPant
Icontem

File: example4.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sildaekar Decrura  >  PTM  >  example4.php  >  Download  
File: example4.php
Role: Example script
Content type: text/plain
Description: Example 4
Class: PTM
Manage PHP tasks running in parallel processes
Author: By
Last change: Fixed file pointer
Date: 2012-07-17 01:39
Size: 480 bytes
 

Contents

Class file image Download
<?php
//In this example we load and run the task "HelloWorld" with verbose enabled

//Include the task manager into our program
require_once("./taskmanager/container.php");

//Initialize the Manager
$manager=new TaskManager();

//Turn verbose reporting on
$manager->verbose=true;

//Load the task "HelloWorld"
$manager->add_task(new HelloWorld());

//Make sure there are tasks present
if($manager->check_tasks()){
    
//Run all loaded tasks
    
$manager->run();
}
?>