On Tue, 31 Jul 2001, Stig Venaas wrote:
> On Tue, Jul 31, 2001 at 11:59:07AM +0500, Saquib Farooq wrote:
> > hi
> >
> > well first of all you have to remove the colon -- ";" sign from
> > the end of your while loop .. that will solve the problem for the time
> > out.
> > then there
On Tue, Jul 31, 2001 at 11:59:07AM +0500, Saquib Farooq wrote:
> hi
>
> well first of all you have to remove the colon -- ";" sign from
> the end of your while loop .. that will solve the problem for the time
> out.
> then there is problem with your code, this code will never get
sorry i said to remove the colon sign from the end of the while loop, what
i meant was to remove the colon sign from the end of your while statement
:). plus it looks better to change the $c=1 to $b=1
On Tue, 31 Jul 2001, Saquib Farooq wrote:
> hi
>
> well first of all you have to remove
Hi,
Remove the ; after while!
With ; while will loop only this line
Muhv
> my code:
>
> $i=0;
> $a=0;
> $b=0;
> $c=0;
> while ($i < 17);
> {
> print "";
> print "$i";
> $a=$c+$b;
> print "$a";
> $b=$a;
> $c=$b;
> $i++;
> }
> ?>
> --
> Thanks.
>
hi
well first of all you have to remove the colon -- ";" sign from
the end of your while loop .. that will solve the problem for the time
out.
then there is problem with your code, this code will never get you
the fibonacci since the variable a,b and c never go abone 0, see. :
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.
Experime
6 matches
Mail list logo