This question already has an answer here:
- Limit execution time of an function or command PHP 6 answers
Is it possible to set maximum execution time of exec($command)
function? Sometimes execution of my $command
lasts too long stopping after 1 minute and presenting this error:
Fatal error: Maximum execution time of 60 seconds exceeded in C:xampphtdocsfiles.php on line 51
How can I increase the exec()
command maximum execution time?
if (allow()) { exec($command); if (file_exists($file)) { //exec($makeflv); echo '<script language="javascript" type="text/javascript">window.top.window.aviout(1);</script>'; } else { echo $error; } } else { echo $error; }