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.. Quote 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. Quote 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 Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/278161-php-exec-in-linux/#findComment-1430966 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.