I need to execute an .exe file from PHP in background. I got a Windows 7 + XAMPP (PHP 5.2.9).
When i use this command:
pclose(popen('start /b "title" "'.$myEXE.'" -param1 -param2 > log.txt' , 'r'));
if all goes right, there is no problem, the problem is if the .exe fails or has som problem. When that happens, there is a cmd process that never dies and takes about 3-5 MB of RAM. If there are many processes... it may be a problem.
I don't know what i can do to avoid that.
Thanks!! ;)