I am trying to execute a .exe file using exec() function on my webpage. It sometimes is entering infinite loops and the .exe file is never terminated preventing my php page from proceeding further.
exec('CodeFile.exe 1>temp\\OutputFile.txt<temp\\InputFile.txt');
unlink('CodeFile.exe');
Can any one help me out in ending the process when it enters infinite loop?
And i am using XAMPP running on Windows 10