Page 1 of 1

Execute an exe with php on Windows?

Posted: Thu Sep 19, 2002 2:51 pm
by garyewer
Is it possible to execute an exe file with PHP on windows?
("c:\winnt\system32\psservice.exe start winroute" and "c:\winnt\system32\psservice.exe stop winroute")

I want to allow people to run these commands over our house network with a little web interface. Is this possible? If not with PHP anyone got any bright ideas how it could be done?

Thanks,

Gary

Posted: Thu Sep 19, 2002 10:01 pm
by hob_goblin

Security advise

Posted: Thu Sep 19, 2002 10:09 pm
by AVATAr
Be aware for security issues if you use some kind of variables or parameters from the url.

Somebody can chango those variables and execute something you dont like.

This will happen if you use any kind of variables in the execution, so if you dont... you wont have any problem at all...