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    
Last Updated Ratings Unique User Downloads Download Rankings
2009-09-03 (8 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,440 All time: 2,645 This week: 649Up
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
Name: Manooj Kumar Dhar <contact>
Classes: 1 package by
Country: India India
Age: 37
All time rank: 1831118 in India India
Week rank: 1004 Up74 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,645
This week:649Up