tripura4u Posted May 19, 2013 Share Posted May 19, 2013 Hi Team, I am able to execute exec('file.exe') in my local wampserver in widows. Problem: When I have uploaded the same code in Linux server in web, it is not getting executed. Help plz.. Link to comment https://forums.phpfreaks.com/topic/278161-php-exec-in-linux/ Share on other sites More sharing options...
kicken Posted May 19, 2013 Share Posted May 19, 2013 Your linux host is quite unlikely to have a file.exe program for you to run. It may have a file (no .exe) program though, if that is what you're after. Windows and linux have different programs w/ different naming schemes. You need to make sure your exec call matches the target system's naming scheme and references a valid program. Link to comment https://forums.phpfreaks.com/topic/278161-php-exec-in-linux/#findComment-1430944 Share on other sites More sharing options...
tripura4u Posted May 19, 2013 Author Share Posted May 19, 2013 "Naming scheme" can u plz elaborate. The host is hostgator Link to comment https://forums.phpfreaks.com/topic/278161-php-exec-in-linux/#findComment-1430946 Share on other sites More sharing options...
trq Posted May 19, 2013 Share Posted May 19, 2013 Linux doesn't have *.exe files. What command are you trying to execute? Link to comment https://forums.phpfreaks.com/topic/278161-php-exec-in-linux/#findComment-1430966 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.