note 79320 deleted from ref.win32service by jbnahan

From: Date: Fri, 04 Jan 2019 06:17:40 +0000
Subject: note 79320 deleted from ref.win32service by jbnahan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-209990@lists.php.net to get a copy of this message
Note Submitter: me at sylvain tiret besse point fr ---- Just to help a little, the service control command must be in the first script called. If you try to type this portion of code in a separate file and include it, the SCM will not get the controls. example : - file1.inc : <?PHP class MyClass{ function __construct() { $x = win32_start_service_ctrl_dispatcher('service'); while (WIN32_SERVICE_CONTROL_STOP!=win32_get_last_control_message()){ //your code } } ?> - service.php : <?PHP include("file1.inc"); $object = new MyClass(); ?> WON'T WORK !

« previous php.notes (#209990) next »