Re: WMI call to run a remote application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx>:

> 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
>
>

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux