Or you can use the iisfunc extension (not documentented), available from PECL or my site (http://kromann.info/php4.php)
the functions int iis_stop_service(string service) int iis_start_service(string service) int iis_get_service_state(string service) - Frank > net start outputs a list of *running* services. > > Or do you mean other service status information (automatic/ manual), etc.? I > don't know. Not with the DOS net tools, AFAI. > > Ignatius > ____________________________________________ > ----- Original Message ----- > From: "Paul Menard" <[EMAIL PROTECTED]> > To: "Ignatius Reilly" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Tuesday, January 14, 2003 7:24 PM > Subject: Re: [PHP-WIN] Windows Service interactions with PHP > > > > Yes this does work but how do I simply destermine the > > status of the service without actually starting it? > > > > Obviosly is the service is running and you call > > > > --- Ignatius Reilly <[EMAIL PROTECTED]> wrote: > > > You can access the command line with the backtick > > > operator: > > > > > > <?php > > > > > > // restart the servers > > > `net stop mysql` ; // backtick, not quote > > > `net stop apache` ; > > > `net start mysql` ; > > > `net start apache` ; > > > > > > // To access the running services: > > > `net start > "file_to_parse.txt"` ; > > > > > > ?> > > > > > > > > > En espérant que cela aide > > > Ignatius > > > ____________________________________________ > > > ----- Original Message ----- > > > From: "Paul Menard" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Tuesday, January 14, 2003 5:10 PM > > > Subject: [PHP-WIN] Windows Service interactions with > > > PHP > > > > > > > > > > All, > > > > > > > > I' converting a Web site from ASP to PHP. One of > > > the > > > > last issues I am working on is converting the ASP > > > page > > > > that will show the status of a specific Service. > > > > > > > > This page also allows the Admin level user to > > > > stop/start the service. > > > > > > > > What is the 'best' way to code this in PHP and/or > > > > Perl? > > > > > > > > Paul > > > > > > > > __________________________________________________ > > > > Do you Yahoo!? > > > > Yahoo! Mail Plus - Powerful. Affordable. Sign up > > > now. > > > > http://mailplus.yahoo.com > > > > > > > > -- > > > > PHP Windows Mailing List (http://www.php.net/) > > > > To unsubscribe, visit: > > > http://www.php.net/unsub.php > > > > > > > > > > > > > > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > > http://mailplus.yahoo.com > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php