PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,450 All time: 2,700 This week: 206Up
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
Innovation award
Innovation award
Nominee: 1x

 

  Files folder image Files (2)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,450
This week:0
All time:2,700
This week:206Up