Inconsistent Fatal error: Maximum execution time of 30 seconds exceeded
<p>I have a php form where a user showed me that they received a fatal error:</p>

<pre><code>Maximum execution time of 30 seconds exceeded in C:\Program Files\Apache2.2\htdocs\eeallparts\registration.php on line 282.  
</code></pre>

<p>What is odd is that they resubmitted the form again and the form worked as it is supposed to inserted the data into the database so this isn't a consistent error.  I get quite a few submissions on the form (a fair degree of them spam) so I know that the form usually works, but this random error bothers me obviously.</p>

<p>I went to the line 282 and the only thing I see is this:</p>

<pre><code>if(!$insertContact_query = mssql_query($sql)) {     
</code></pre>

<p>I read a couple of the other threads related to this that suggested to look at the <a href="http://www.php.net/manual/en/function.set-time-limit.php" rel="nofollow">set time limit</a>.  If the query simply takes too long wouldn't the query virtually always time out instead of periodically time out?  I had the user resubmit the same information in the form and it worked the second time?</p>
