[UPHPU] script timers
Walt Haas
haas at xmission.com
Fri Feb 16 14:54:59 MST 2007
On Fri, 2007-02-16 at 12:17 -0700, Mac Newbold wrote:
> Today at 10:25am, Dave Smith said:
>
> > First, be sure to disable any output buffering. Then, use logging on the
> > server side to do time stamping. Write timestamps to a file on disk as the
> > PHP script executes. Lastly, start looking at your Apache (or whatever web
> > server) logs, and see if there are any errors there that could be causing the
> > problem. It's most likely a problem with the web server itself, and not your
> > PHP code.
>
> That's great advice. The error_log() function comes in really handy for
> that.
Here's another idea: use Wireshark or a similar network traffic analyzer
to watch the traffic between browser and server. Wireshark timestamps
every frame with a time in microseconds, so you can see where the delays
are (from the browser's viewpoint).
Wireshark used to be called Ethereal. It comes with Fedora Core and if
it doesn't come with your distro it probably wouldn't be too hard to
add.
-- Walt
More information about the UPHPU
mailing list