shell_exec starts processes that get never stopped

Hi everyone,
I have been looking for this problem since a long time.
I created a webservice that gives access to a executable file using the shell_exec() function.
When I now take a look at my server I see hundreds of processes, half of them cmd.exe and the other half my executable file. Also the users report that it takes sometimes minutes until the executable has run.
Can this be a PHP issue? Can i give the shell_exec a timeout parameter, after how many seconds the process has to be stopped again?
thanks
ckonig

Sponsor our Newsletter | Privacy Policy | Terms of Service