Executing a external file from PHP

Bhullarz's Avatar
Skilled contributor
Hi ! I am trying to execute an external file i.e abc.exe from php but it is not working.
I have used the following code:
	exec("executable1.exe -o arg1 arg2");
	shell_exec("executable1.exe -o arg1 arg2");
	system("executable1.exe -o arg1 arg2");
None of the commands seem to be working. What's wrong in the code?
Bhullarz's Avatar
Skilled contributor
No one replied yet. But I have solved this problem. so no worries
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Why dont you share it here so if anyone searching can find it easily
Bhullarz's Avatar
Skilled contributor
It may sound funny to all. I developed a software in Windows and transferred to server which is Linux Server. This was the reason EXE files were not working there.