PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Sildaekar Decrura   PTM   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example 1
Class: PTM
Manage PHP tasks running in parallel processes
Author: By
Last change: Fixed pointer
Date: 10 years ago
Size: 405 bytes


Class file image Download
//In this example we load and run the task "HelloWorld"

//Include the task manager into our program

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

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

//Make sure there are tasks present
//Run all loaded tasks