Shiny_Charizard Posted August 6, 2008 Share Posted August 6, 2008 I was wondering if there is a way to execute an ".exe" file with php. I there is a way can anyone explain to me how to do it? Quote Link to comment https://forums.phpfreaks.com/topic/118389-solved-executeing-a-exe-file-with-php/ Share on other sites More sharing options...
BioBob Posted August 6, 2008 Share Posted August 6, 2008 Dont lol exec("cmd.exe"); or whatever executable filename... Quote Link to comment https://forums.phpfreaks.com/topic/118389-solved-executeing-a-exe-file-with-php/#findComment-609262 Share on other sites More sharing options...
discomatt Posted August 6, 2008 Share Posted August 6, 2008 This will ONLY work on windows-based servers. Quote Link to comment https://forums.phpfreaks.com/topic/118389-solved-executeing-a-exe-file-with-php/#findComment-609302 Share on other sites More sharing options...
Shiny_Charizard Posted August 6, 2008 Author Share Posted August 6, 2008 So does that mean it won't work in mine, because my server is Linux. Quote Link to comment https://forums.phpfreaks.com/topic/118389-solved-executeing-a-exe-file-with-php/#findComment-609670 Share on other sites More sharing options...
trq Posted August 6, 2008 Share Posted August 6, 2008 .exe files are windows executables that will not run natively on Linux. So, the answer to your question is yes. Quote Link to comment https://forums.phpfreaks.com/topic/118389-solved-executeing-a-exe-file-with-php/#findComment-609671 Share on other sites More sharing options...
Shiny_Charizard Posted August 6, 2008 Author Share Posted August 6, 2008 Ok, well thanks everyone. Quote Link to comment https://forums.phpfreaks.com/topic/118389-solved-executeing-a-exe-file-with-php/#findComment-609711 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.