title: Fatal error: Maximum execution time of 30 seconds exceeded in script
body: <p>I have a customer who is getting an error related to a script timeout. I've included the code below, but i think the issue is that the timeout needs to be extended.</p>
  
  <p>Is this something I can set in the code, or does it have to be set by the web host (GoDaddy)?</p>
  
  <p><em>Fatal error: Maximum execution time of 30 seconds exceeded in D:\hosting\123\html\siteame\wp-content\plugins\myplugin\myplugin.php on line 170</em></p>
  
  <p>The code at that point is:</p>
  
  <pre><code>function my_copy_recurse($src,$dst){
      $dir = opendir($src); 
      @mkdir($dst); 
      while(false !== ( $file = readdir($dir)) ) 
      { 
          if (( $file != '.' ) &amp;&amp; ( $file != '..' )) 
          { 
              if ( is_dir($src . '/' . $file) ) { 
                  my_copy_recurse($src . '/' . $file,$dst . '/' . $file); 
              } 
              else { 
                  copy($src . '/' . $file,$dst . '/' . $file); 
              } 
          } //THIS IS LINE 170
      } 
      closedir($dir); 
  }
  </code></pre>