If what I've said is correct, then in simple terms...

your php code will take a set amount of time to execute everything, then....
the html and web page cmoponents are sent to the browser, then....
the browser interprets the html and displays the page.

One of the stages listed above seems to be running slow.

I'm fairly new to PHP and haven't attempted to time how long a php script
takes to execute, but you should test this and if it's slow, then I suppose
you want to try and optimise the script.

if you save everything on the web page and examine the size of the file this
might give you an indication as to whether it's a bandwidth problem.  You
could save the html and all components, upload them to the server as a
normal static web page and compare the download times with the dynamic,
PHP-generated page.

copy the html generated into an html editor that highlights html syntax
errors - your browser might be having problems interpreting the html.

If your page starts to display content immediately and then takes a while to
complete AND if I'm correct in saying the PHP finishes before the generated
page is sent to the browser then it's unlikely to be a slow PHP script
that's the problem.

Hope this helps,
Derek




----- Original Message -----
From: "Daniel Alsén" <[EMAIL PROTECTED]>
To: "Derek Mailer" <[EMAIL PROTECTED]>
Sent: Thursday, October 25, 2001 11:45 AM
Subject: RE: [PHP] Re: Loading message


> > Is your script really taking that long to be parsed that you need
> > a loading
> > progress bar or is the html (including graphics etc) just very big?
>
> Parts of the page is rather heavy loaded. The main php file loads fine and
> displays it´s contents until it reaches one of the heavy includes (heavy
> because it gets data from another website).
> So, in effect, the page loads and displays all content, make pauses when
> hitting heavy includes, and then continues.
>
> - Daniel
>



**********************************************************************************
This e-mail (and any attachment) is intended only for the attention
of the addressee(s). Its unauthorised use, disclosure, storage
or copying is not permitted. If you are not the intended recipient,
please destroy all copies and inform the sender by return e-mail. 
This e-mail (whether you are the sender or the recipient) may be 
monitored, recorded and retained by Business Information 
Publications Limited (BiP). E-mail monitoring/ blocking software 
may be used, and e-mail content may be read at any time.You 
have a responsibility to ensure laws are not broken when composing 
or forwarding e-mails and their contents.
**********************************************************************************


-- 
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