I need to execute a .exe file located in C:\Program Files\ABC\test.exe on my windows machine using PHP. I have installed WAMPP/XAMPP to run PHP. I have tried the exec() system() shell_exec() but I'm unable to run the file. Can someone help me with the exact code?
tAALz
0
Newbie Poster
Recommended Answers
Jump to Posthave you tried passthru() it is similar to the system command. If it does not work then it is probable that these command are disabled by your hosting provider.
Jump to PostWhy would you want to run exe on local file system?
Can't it be accomplished via pure PHP solution?
All 7 Replies
sam-i-am
0
Newbie Poster
tAALz
0
Newbie Poster
Stefano Mtangoo
455
Senior Poster
tAALz
0
Newbie Poster
zark_yoc
0
Newbie Poster
sam-i-am
0
Newbie Poster
chrishea
182
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.