Re: [PHP] for loops performance

2004-08-21 Thread John Holmes
Xongoo!com: Central unit wrote: Maybe someone knows how to improve for loops performance? When generating 1000's of pages, it oads in 10-20 seconds. Maybe there is some solution I don't know about? If you only generate 100s of pages, it'll probably load about ten times faster... -- ---John Holmes

Re: [PHP] for loops performance

2004-08-21 Thread Shawn McKenzie
Cummings" <[EMAIL PROTECTED]> To: "Xongoo!com: Central unit" <[EMAIL PROTECTED]> Cc: "PHP-General" <[EMAIL PROTECTED]> Sent: Saturday, August 21, 2004 7:32 PM Subject: Re: [PHP] for loops performance On Sat, 2004-08-21 at 12:17, Xongoo!com: Central unit

Re: [PHP] for loops performance

2004-08-21 Thread Xongoo!com: Central unit
IL PROTECTED]> To: "Xongoo!com: Central unit" <[EMAIL PROTECTED]> Cc: "PHP-General" <[EMAIL PROTECTED]> Sent: Saturday, August 21, 2004 7:32 PM Subject: Re: [PHP] for loops performance > On Sat, 2004-08-21 at 12:17, Xongoo!com: Central unit wrote: > > Holl

Re: [PHP] for loops performance

2004-08-21 Thread raditha dissanayake
Xongoo!com: Central unit wrote: Holla, Maybe someone knows how to improve for loops performance? When generating 1000's of pages, it oads in 10-20 seconds. Maybe there is some solution I don't know about? prey what is your algorithm? Thanks! -- Tadas Talaikis [EMAIL PROTECTED] http://www.xongoo.

Re: [PHP] for loops performance

2004-08-21 Thread Robert Cummings
On Sat, 2004-08-21 at 12:17, Xongoo!com: Central unit wrote: > Holla, > > Maybe someone knows how to improve for loops > performance? When generating 1000's of pages, it > oads in 10-20 seconds. Maybe there is some > solution I don't know about? Give us an example of your for loop that is having

[PHP] for loops performance

2004-08-21 Thread Xongoo!com: Central unit
Holla, Maybe someone knows how to improve for loops performance? When generating 1000's of pages, it oads in 10-20 seconds. Maybe there is some solution I don't know about? Thanks! -- Tadas Talaikis [EMAIL PROTECTED] http://www.xongoo.com -- PHP General Mailing List (http://www.php.net/) To un

RE: [PHP] For Loops and Variables??

2003-09-16 Thread Chris W. Parker
Chris W. Parker <> on Tuesday, September 16, 2003 4:07 PM said: > This Is Good(tm): > > for($x=0;$x<100;$x++) > { > for($x=0;$x<100;$x++) > { > echo "Me happy now!!"; > } > } Hehe... whoops! Should be: for($x=0;$x<100;$x++) { for($y=0;$y<100;$y++)

RE: [PHP] For Loops and Variables??

2003-09-16 Thread Chris W. Parker
John Ryan on Saturday, September 13, 2003 9:26 AM said: > When I use for loops, at the start of each iteration, the variables > hold the values from the last loop. You're doing it wrong then (I think). 1. You should always initialize your loop counters. i.e. $x =

Re: [PHP] For Loops and Variables??

2003-09-13 Thread Curt Zirzow
* Thus wrote John Ryan ([EMAIL PROTECTED]): > When I use for loops, at the start of each iteration, the variables hold the > values from the last loop. > > First, is there an elegant way of clearing variables at the start of each > loop rather than using unset???! It just seems wrong. I'm unclear

[PHP] For Loops and Variables??

2003-09-13 Thread John Ryan
When I use for loops, at the start of each iteration, the variables hold the values from the last loop. First, is there an elegant way of clearing variables at the start of each loop rather than using unset???! It just seems wrong. Also, all my problems would be solved if variables in a for loop

Re: [PHP] for loops

2002-05-30 Thread Steve Buehler
it works for me just the way you have itexcept of course that you are telling it to only print to "y" because you are saying On Thursday 30 May 2002 11:46, Peter wrote: > > Just a query ... has any one else noticed this > > > > for($i = a; $i < z; $i++) > > { > > print $i; > > echo "";} > >

Re: [PHP] for loops

2002-05-29 Thread Jason Wong
On Thursday 30 May 2002 11:46, Peter wrote: > Just a query ... has any one else noticed this > > for($i = a; $i < z; $i++) > { > print $i; > echo "";} > > will print out a right down to yz It should only print to 'y' ... > but replace the letters with numbers eg > > for($i = 1; $i < 10; $i++)

[PHP] for loops

2002-05-29 Thread Peter
Just a query ... has any one else noticed this for($i = a; $i < z; $i++) { print $i; echo "";} will print out a right down to yz but replace the letters with numbers eg for($i = 1; $i < 10; $i++) { print $i; echo "";} and it prints 1 thru to 10 and any one know a reason for this?