You need to find the php configuration script on your system. Under Windows,
this is php.ini in you Windows directory.

Search through this configuration file for:

max_execution_time

and change the value to something other than 30 seconds, this will allow
your script to run for longer.

Experiment with the value until your script can complete. However, be warned
that making the time too long could make your system unresponsive!

Pip


----- Original Message -----
From: "marke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 7:48 AM
Subject: [PHP] Compution of Fibonacci


> hi!
> i want to write a php script for Compution of Fibonacci(it is a integer
> equal the sum of 2 numbers befor it).but there's a error:"Fatal error:
> Maximum execution time of 30 seconds exceeded in C:\phpscr\Fibonacci.php
> on line 6".i don't know why it happens.it looks like the loop can't be
> finished.
>
> my code:
> --------------------
> <?
> $i=0;
> $a=0;
> $b=0;
> $c=0;
> while ($i < 17);
> {
> print "<table>";
> print "<tr><td>$i</td>";
> $a=$c+$b;
> print "<td>$a</td></tr>";
> $b=$a;
> $c=$b;
> $i++;
> }
> ?>
> ----------------------
> Thanks.
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to