Hey,
Thanks for the reply, will do.
Cheers,
-Ryan

We will slaughter you all! - The Iraqi (Dis)information ministers site
http://MrSahaf.com


----- Original Message ----- 
From: "Bogdan Stancescu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 3:21 AM
Subject: [PHP] Re: Loading advise (no problem)


> Hi Ryan,
>
> Looks good from here, you should try a traceroute to that host, I think
> that's actually your problem... Or are you on a local network with that
> machine? Try the traceroute nevertheless, who knows how your hub is
> acting up... :)
>
> Bogdan
>
> Ryan A wrote:
> > Hi,
> > No problem, Just need a little advise on improving my page display time,
let
> > me explain:
> >
> > I am using some ad software (written in php) which is giving me 5 ads
> > (banners) to display on a page dynamically (eg: they rotate, banner code
is
> > given at the end of this mail)
> > I have put all 5 banners on a page my themselfes, renamed the file to
> > TestingAds.php and used a microtime function to see whats the script
> > execution time like so:
> >
> > <?php
> > function mtime() {
> >         $time = explode(" ", microtime());
> >         $micro = doubleval($time[0]);
> >         $sec = doubleval($time[1]);
> >         return $micro + $sec; }
> >         $start = mtime();
> > ?>
> > html and banner code here
> > <?php
> >   $end = mtime();
> > $total = $end - $start;
> > echo "Total script execution time: $total";
> >   ?>
> >
> > I ran TestingAds.php 10 times and these are the numbers, you dont have
to
> > take an averige to see they are pretty good:
> >  0.00024902820587158
> >  0.00027501583099365
> >  0.00025904178619385
> >  0.00027906894683838
> >  0.00043702125549316
> >  0.00036203861236572
> >  0.00045394897460938
> >  0.00024497509002686
> >  0.00025498867034912
> >  0.00025796890258789
> >
> > then i took those ads and placed them exactly where they have to go on
my
> > index.php page, then reloaded the page 10 times and got these numbers:
> >  0.00018906593322754
> >  0.00066602230072021
> >  0.00055098533630371
> >  0.00054502487182617
> >  0.00054800510406494
> >  0.00055789947509766
> >  0.00054597854614258
> >  0.00056195259094238
> >  0.00056302547454834
> >  0.00049996376037598
> >
> > The numbers look pretty good (i think), but when i actually visit the
page
> > it takes  a bit long to load...even though I am on a pretty fast
connection,
> > any idea why this is the case? my page takes around 20 seconds to load
and
> > there is a white screen till everything is loaded then BLAM its all
done.
> > What can i do so that my page loads faster or atleast shows the page to
the
> > visitor and then loads one ad after another so the visitor can see the
page
> > loading instead of just a white screen?
> >
> >
> > This is the banner code:
> > <SCRIPT LANGUAGE="JavaScript"
> >
SRC="http://jumac.com/ads/ads.php?jscript;zone=tower";></SCRIPT><NOSCRIPT><IF
> > RAME SRC="http://jumac.com/ads/ads.php?iframe;zone=tower"; MARGINWIDTH=0
> > MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=NO WIDTH=121
> > HEIGHT=601><A
> > HREF="http://jumac.com/ads/ads.php?banner=NonSSI;page=01;zone=tower";
> > TARGET="_blank"><IMG
SRC="http://jumac.com/ads/ads.php?page=01;zone=tower";
> > BORDER=0></A></IFRAME></NOSCRIPT>
> >
> > here is the TestingAds page:
> > http://bestwebhosters.com/TestingAds.php
> >
> > I have not included the main page that i have already setup the ads
because
> > right now its still be touched up and nothing on the page works but if
you
> > still want to see it just write to me and tell me.
> >
> > Thanks for your time.
> > Cheers,
> > -Ryan
> >
> >
> >
> >
> >
> >
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to