mu123guy Posted August 13, 2010 Share Posted August 13, 2010 hi guys. i'm new to php and Apache and i have a problem. i'm trying to execute an exe file that i have in my folder, and the code i use is echo exec('test.exe'); i have tried using this with and without the ".exe." and still no luck. i have also tried using a different path echo exec('C:\Windows\System32\mspaint'); now these codes work when i run them from my php editor(PhpED), bun when i try running it on Apache it gets stuck. (just shows the web page as loading with no end. please help me out. i'm guessing it something with security. also if there is any other code i can use please let me know (i have also tried using system) Quote Link to comment https://forums.phpfreaks.com/topic/210671-exec-function-wont-work-for-me-unless-i-use-phped/ Share on other sites More sharing options...
trq Posted August 14, 2010 Share Posted August 14, 2010 This exe doesn't happen to execute a desktop application does it? Apache doesn't have permission to do that. Quote Link to comment https://forums.phpfreaks.com/topic/210671-exec-function-wont-work-for-me-unless-i-use-phped/#findComment-1099098 Share on other sites More sharing options...
mu123guy Posted August 16, 2010 Author Share Posted August 16, 2010 Hi. thank you for the response. is there any way to make ApacheĀ it allow it? or any other function that can do so? what my problem is, is i have installed a certain program that i want to be able to run by clicking on a button on a website. any way i could do that? Quote Link to comment https://forums.phpfreaks.com/topic/210671-exec-function-wont-work-for-me-unless-i-use-phped/#findComment-1099888 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.