Re: WMI call to run a remote application
| From: | Allain Lalonde | Date: | Sat, 24 May 2008 13:56:07 +0000 |
| Subject: | Re: WMI call to run a remote application | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-28912@lists.php.net to get a copy of this message | ||
To execute a shell statement on the server side use
http://ca3.php.net/manual/en/function.exec.php.
That way you keep Web things
in PHP and Shell Script things in a more appriate language like cscript
(vbs) or batch files.
Even though PHP *can do it*, it doesn't mean it's the best language for
doing it.
My 2 cents,
Allain Lalonde
2008/5/22 John Arends <jarends@uiuc.edu>:
> I'd like to have a PHP script running on my web server (running IIS 6) that
> can make a WMI call and start a specific remote process on a remote
> computer.
>
> For what its worth, the remote process I'd like to trigger is a batch file.
>
> I've googled this extensively and can't find anything that points me in the
> right direction. All the sample scripts are in vbscript, but I assume I can
> probably do something like this with PHP as well since it has COM libraries.
>
> Any suggestions?
>
> -John
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>