title: Set maximum execution time for exec() specifically
body: <p>Is it possible to set maximum execution time of <code>exec($command)</code> function? Sometimes execution of my <code>$command</code> lasts too long stopping after 1 minute and presenting this error:</p>
  
  <blockquote>
    <p>Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\files.php  on line 51</p>
  </blockquote>
  
  <p>How can I increase the <code>exec()</code> command maximum execution time?</p>
  
  <pre><code>    if (allow()) {
      exec($command);
  
      if (file_exists($file)) {
          //exec($makeflv);
          echo '&lt;script language="javascript" type="text/javascript"&gt;window.top.window.aviout(1);&lt;/script&gt;';
  
      } else {
          echo $error;
          }
  
  } else {
     echo $error;
     }
  </code></pre>