Reply to Re: Why is this script so slow?

Your name:

Reply:


Posted by Vince Morgan on 03/19/07 00:33

"kenoli" <kenoli.p@gmail.com> wrote in message
news:1174252218.374723.246040@d57g2000hsg.googlegroups.com...
> The following code is extracting all fields from all records from a
> mysql database that has about 250 records in it. Firefox takes over
> one minute to extract these records and display them in rows in a
> table using the code included below. Safari takes about 30 seconds.
> Even after the page displays, the scrolling is a little eratic.
>

The data is being extracted on the server. The resulting html is being
created on the server. I don't think it cares too much what browser is going
to be recieving the results.
In this case it would appear to be a rendering issue. The final html page
that is pumped out to the browsers must be taking longer to render on some
browsers than others, and that is not a php issue.
Although the resulting markup does have a !DOCTYPE declaration, it doesn't
validate. That is going to give inconsistent results on different browsers.
You make a contract with the browser, then immediately break it.
On my machine, in Australia, it takes about 3 seconds to load and render.
I'm running IE6.
I think if you output code that meets the requirements of the declaration
you results will be more consistent

> When I use another script to extract the same data and display the
> first and last names in one column, it takes about 3 seconds from
> start to finish. So I believe it is not the database or the server.
> I can only conclude it is the script.

Yes, but it's the final html the script is generating that is the real
issue.
HTH
Vince Morgan

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация