PHP Classes

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,401 This week: 2All time: 2,635 This week: 567Up
Version Licenses PHP version Categories  
daemon-windows 2GNU Free Document...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: 35
All time rank: 1797112 in India India
Week rank: 551 Up45 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,401All time:2,635
 This week:2This week:567Up