Hi. Is it possible to set maximim execution time of exec($shellCommand) funcntion? Sometimes execution of my $shellCommand lasts too long and e.g. after 1min i would like to stop execution and do next lines of my php file.
| SitePoint Sponsor |
Hi. Is it possible to set maximim execution time of exec($shellCommand) funcntion? Sometimes execution of my $shellCommand lasts too long and e.g. after 1min i would like to stop execution and do next lines of my php file.


Try Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more




he would like to continue executing the rest of his script.


Can you leave it going as a background process and immediately start the rest of your script? Or must the command have time to run first?
You may still be able to start it as a background process and sleep() a couple seconds.
Try Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more
Bookmarks