Re: Windows Service interactions with PHP
| From: | Ignatius Reilly | Date: | Tue, 14 Jan 2003 16:28:18 +0000 |
| Subject: | Re: Windows Service interactions with PHP | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17858@lists.php.net to get a copy of this message | ||
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
>
>