Execute an exe with php on Windows?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
garyewer
Forum Newbie
Posts: 1
Joined: Thu Sep 19, 2002 2:51 pm

Execute an exe with php on Windows?

Post 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
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Security advise

Post 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...
Post Reply