[PHP] RE: Print or Echo takes lots of time

2006-09-27 Thread Sancar Saran
Hi, Thanks for supporting, because of the approaching to the problem, I don't want to change generate once echo once style. And I found solution like this, I split  variable into an array and generate loop for printing, mostly fix the problem. And more interesting, some times problem repeates

Re: [PHP] Re: Print or Echo takes lots of time

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 4:08 am, Colin Guthrie wrote: > Google Kreme wrote: >> On 25 Sep 2006, at 06:11 , Sancar Saran wrote: >>> $strPage = " yada dayda"; >>> ... >>> $strPage.= " another html tags"; >>> ... >>> $strPage.= getSqlDataAndCreateSomeHtmlCOde(); >> >> If this is generating hundred o

[PHP] Re: Print or Echo takes lots of time

2006-09-26 Thread Colin Guthrie
Google Kreme wrote: > On 25 Sep 2006, at 06:11 , Sancar Saran wrote: >> $strPage = " yada dayda"; >> ... >> $strPage.= " another html tags"; >> ... >> $strPage.= getSqlDataAndCreateSomeHtmlCOde(); > > If this is generating hundred of K of HTML, use ' instead of " > > (yes, it's faster). In this

[PHP] Re: Print or Echo takes lots of time

2006-09-25 Thread Colin Guthrie
Sancar Saran wrote: > Hi, > > When I was check the performance of my system I found interesting resuts. > > My code stores html output into a variable. When page creation complete I > printed out the variable. > > Problem was generation html code takes 0.5 second and just > echo $strPage takes