Login   Register  
PHP Classes
elePHPant
Icontem

Multi Threading, Daemon (Windows service): Create Windows service to run daemons

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 (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-09-03 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,328 This week: 3All time: 2,682 This week: 617Up
Version Licenses PHP version Categories  
daemon-windows 2GNU Free Documentation ...4.0PHP 5, Windows
Description Author  

This class can be used to used to create Windows service to run daemons.

This is mostly an example of how to start a Windows service using the Win32 PHP extension.

It register the service and starts a loop that goes on forever until the service is instructed to terminate.

In side the service loop the class calls a separate PHP script that can perform an arbitrary task as a thread running in parallel to the service daemon.

Innovation Award  
PHP Programming Innovation award nominee
September 2009
Number 2


Prize: One book of choice by Packt
A Windows service is a program that keeps running in the background ready to perform certain tasks. It is the equivalent to daemon processes on Linux and other Unix like systems.

This class gives an example of how to create and register a service that can be started and stopped like other Windows services.

Manuel Lemos
Picture of Manooj Kumar Dhar
Name: Manooj Kumar Dhar <contact>
Classes: 1 package by
Country: India India
Age: 34
All time rank: 1800109 in India India
Week rank: 592 Up50 in India India Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file jobScript.php Example this file will receive all the paramets sent by the windows service using the multithreading process and process the further execution
Plain text file phpdaemon.php Class this class will help you to launch a windows service using php with mulit threading property

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,328All time:2,682
 This week:3This week:617Up