note 91551 added to function.win32-query-service-status

From: Date: Tue, 16 Jun 2009 17:29:37 +0000
Subject: note 91551 added to function.win32-query-service-status
Groups: php.notes 
Request: Send a blank email to php-notes+get-156935@lists.php.net to get a copy of this message
***Notice the name is IISADMIN and not IIS Admin right click the serivce then, type in the "Service Name" not the "Display Name" or you will get 1060 <? $servicename ="IISADMIN"; $machine ="desktopper"; //print_r (win32_query_Service_status($servicename,$machine)); echo $servicename; $sray = win32_query_Service_status($servicename,$machine); echo "<br>"; print_r ($sray); echo "<ul>"; echo "<li>Service Type: " .$sray[ServiceType] . "</li>"; echo "<li>CurrentState: " .$sray[CurrentState] . "</li>"; echo "<li>Controls Accpeted: " .$sray[ControlsAccepted] . "</li>"; echo "<li>Win32 Exit Code: " .$sray[Win32ExitCode] . "</li>"; echo "<li>Service Specific Exit Code: " .$sray[ServiceSpecificExitCode] . "</li>"; echo "<li>Check Point: " .$sray[CheckPoint] . "</li>"; echo "<li>Wait Hint: " .$sray[WaitHint] . "</li>"; echo "<li>Process Id: " .$sray[ProcessId] . "</li>"; echo "<li>Service Flags: " .$sray[ServiceFlags] . "</li>"; ?> ---- Server IP: 209.41.74.194 Probable Submitter: 143.112.32.4 ---- Manual Page -- http://www.php.net/manual/en/function.win32-query-service-status.php Edit -- https://master.php.net/note/edit/91551 Del: integrated -- https://master.php.net/note/delete/91551/integrated Del: useless -- https://master.php.net/note/delete/91551/useless Del: bad code -- https://master.php.net/note/delete/91551/bad+code Del: spam -- https://master.php.net/note/delete/91551/spam Del: non-english -- https://master.php.net/note/delete/91551/non-english Del: in docs -- https://master.php.net/note/delete/91551/in+docs Del: other reasons-- https://master.php.net/note/delete/91551 Reject -- https://master.php.net/note/reject/91551 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156935) next »