PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,448 All time: 2,695 This week: 281Up
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: 43
All time rank: 1884116 in India India
Week rank: 457 Up30 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  
This week:0
All time:2,695
This week:281Up