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 !
win32service İşlevleri
İçindekiler
- win32_create_service — Hizmet yönetim veritabanında yeni bir hizmet girdisi oluşturur
- win32_delete_service — Bir hizmet girdisini Hizmet yönetim veritabanından siler
- win32_get_last_control_message — Hizmete gönderilmiş son denetim kodunu döndürür
- win32_query_service_status — Bir hizmetin durumunu sorgular
- win32_set_service_status — Hizmet durumunu günceller
- win32_start_service_ctrl_dispatcher — Hizmet yöneticisine ismi belirtilen hizmet gibi davranacak bir betik tanıtır
- win32_start_service — Bir hizmeti başlatır
- win32_stop_service — Bir hizmeti durdurur
win32service İşlevleri
me at sylvain tiret besse point fr
20-Nov-2007 08:45
20-Nov-2007 08:45
