Re: Windows Service interactions with PHP
| From: | Ignatius Reilly | Date: | Tue, 14 Jan 2003 18:44:23 +0000 |
| Subject: | Re: Windows Service interactions with PHP | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17861@lists.php.net to get a copy of this message | ||
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" <paulmenard1@yahoo.com>
To: "Ignatius Reilly" <ignatius.reilly@free.fr>; <php-windows@lists.php.net>
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 <ignatius.reilly@free.fr> 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" <paulmenard1@yahoo.com>
> > To: <php-windows@lists.php.net>
> > 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
>
>