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 PostWhy would you want to run exe on local file system?
Can't it be accomplished via pure PHP solution?
Jump to PostI did some experimenting with Exec.
I had no problem starting a local program with Exec with one exception. If the path name contains a blank, I wasn't able to get it to work. Even if the actual program name contains a blank, it works. One simple example that …
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.