Re: Dumb question or what?
| From: | Ryan A | Date: | Sun, 04 May 2003 00:41:38 +0000 |
| Subject: | Re: Dumb question or what? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146313@lists.php.net to get a copy of this message | ||
Hey all,
Thanks Mike and everyone who answered.
Cheers,
-Ryan.
----- Original Message -----
From: "Mike" <php-digest@custom87.net>
To: "Ryan A" <ryan@jumac.com>
Sent: Sunday, May 04, 2003 2:33 AM
Subject: RE: [PHP] Dumb question or what?
> //at top of file:
> $time1 = microtime();
>
> //at bottom of file
> $time2 = microtime();
>
> //output
> echo $time1-$time2;
>
> -Michael
> On Sat, 2003-05-03 at 16:29, Ryan A wrote:
> > Hey Mike,
> > Thanks for replying.
> >
> > How do i do that? Am kind of a newbie...
> >
> > Can you give me some code please?
> >
> > Cheers,
> > -Ryan
> >
> > >
> > > ----- Original Message -----
> > > From: "Mike" <php-digest@custom87.net>
> > > To: "Ryan A" <ryan@jumac.com>
> > > Sent: Sunday, May 04, 2003 2:23 AM
> > > Subject: Re: [PHP] Dumb question or what?
> > >
> > >
> > > > Depends on the server... it has nothing to do with average Joe.
Average
> > > > Joe has to do only with the HTML output. Just grab the microtime at
the
> > > > begging and end of your script and then getting the difference and
> > > > echoing it. That will tell you how long it takes to make the pages.
> > > >
> > > > -Michael
> > > > On Sat, 2003-05-03 at 16:19, Ryan A wrote:
> > > > > Hi,
> > > > > I am kind of new to php coming from a java servlets background and
> > > > > welll....I have fallen for PHP like a sailer for a hooker after a
few
> > > months
> > > > > at sea :-)
> > > > >
> > > > > I am going a little crazy with the include() calls and have a
template
> > > with
> > > > > around 7 includes in the pages like
> > > > > header.php
> > > > > footer.php
> > > > > left.php
> > > > > right.php
> > > > > menu.php
> > > > > news.php
> > > > > misc.php
> > > > >
> > > > > all those files are just static blocks of html code nothing
> > dynamic...my
> > > > > question is (since you guys are much more experienced than me and
are
> > > using
> > > > > PHP longer) will this be too big a load on the server and/or slow
down
> > > my
> > > > > page loading a lot in the long run?
> > > > > I have a high speed broadband connection so to me it really does
not
> > > matter
> > > > > but to the average joe...
> > > > > I have around 13 pages on the whole site...
> > > > >
> > > > > your views are appreciated.
> > > > >
> > > > > Cheers,
> > > > > -Ryan
> > > >
> > >
>