x_maras Posted May 24, 2009 Share Posted May 24, 2009 Hi, I ve got a wamp server installed in my computer. And I ve got a code that runs an .exe and writes on an xml file. In my wamp everything runs good. I uploaded the files in a server and the same code soesnt run the .exe I gave 777 permissions to the exe in the case that that was the problem but nothing. Does anyone knows what can be the problem? Quote Link to comment https://forums.phpfreaks.com/topic/159495-i-cant-run-an-exe-file-with-php/ Share on other sites More sharing options...
corbin Posted May 24, 2009 Share Posted May 24, 2009 Is your server Windows? exe's only natively run on Windows. Quote Link to comment https://forums.phpfreaks.com/topic/159495-i-cant-run-an-exe-file-with-php/#findComment-841347 Share on other sites More sharing options...
x_maras Posted May 24, 2009 Author Share Posted May 24, 2009 no it's not Is there any other way to run it? Quote Link to comment https://forums.phpfreaks.com/topic/159495-i-cant-run-an-exe-file-with-php/#findComment-841427 Share on other sites More sharing options...
corbin Posted May 25, 2009 Share Posted May 25, 2009 You might be able to run it through Wine with a lot of finagling. Getting an EXE to run on Linux probably won't be worth the effort though. What does it do? How hard would it be to mod the source code (assuming you have it) and recompile it for linux? Quote Link to comment https://forums.phpfreaks.com/topic/159495-i-cant-run-an-exe-file-with-php/#findComment-841522 Share on other sites More sharing options...
x_maras Posted May 25, 2009 Author Share Posted May 25, 2009 I don't have the source. It produces an xml file and then I read this file with php and I do my stuff. Quote Link to comment https://forums.phpfreaks.com/topic/159495-i-cant-run-an-exe-file-with-php/#findComment-841779 Share on other sites More sharing options...
x_maras Posted May 26, 2009 Author Share Posted May 26, 2009 I found for the same application a stand alone command line utility for linux. So can you help me by telling me how I can run this in a server using php? Quote Link to comment https://forums.phpfreaks.com/topic/159495-i-cant-run-an-exe-file-with-php/#findComment-841987 Share on other sites More sharing options...
corbin Posted May 26, 2009 Share Posted May 26, 2009 exec Quote Link to comment https://forums.phpfreaks.com/topic/159495-i-cant-run-an-exe-file-with-php/#findComment-842100 Share on other sites More sharing options...
x_maras Posted June 1, 2009 Author Share Posted June 1, 2009 I was thinking of something that maybe sounds stupid but I will ask If every user of this web applcication had the exe in a folder in the program files, and first had to run the exe, is it possible to make a script for uploading the xml file that produces into the server or the opposite to download to a folder automatically with a script? sorry if I m upseting you with my ignorance! Quote Link to comment https://forums.phpfreaks.com/topic/159495-i-cant-run-an-exe-file-with-php/#findComment-846552 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.