Multi Threading, Daemon (Windows service)

  • You are here: Free PHP » Classes » Multi Threading, Daemon (Windows service)
Package:
Multi Threading, Daemon (Windows service)
Summary:
Create Windows service to run daemons
Groups:
PHP 5, Windows
Author:
Rock
Description:
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.


Powered by Gewgley