+1 for Tims answer, I've struck this in the past as well.

On 6 April 2011 15:47, Tim Oliver <[email protected]> wrote:

> On Wed, Apr 6, 2011 at 3:37 PM, Harvey Kane <[email protected]> wrote:
>
> > I have a bit of a weird situation with some unfamiliar old code on an
> > unfamiliar old server which I only have basic access to.
> >
> > The page, which is a series of iframes, is taking a couple of minutes to
> > load. The URL is all password protected etc so I can't share actual code,
> > but I was wondering if anyone suggest what it might be or what to look
> for
> > next.
> >
> > Essentially there is a PHP file which is being called 4 times with
> different
> > querystring arguments (for the main page + 3 iframes). It takes 60
> seconds+
> > to load the full frameset.
>
> Do they use sessions? If you're using the default file-based session
> handler, PHP will flock() the session file when you start the session,
> and release it when the script ends or you call session_write_close.
> This means that if you have a bunch of frames using the same session
> file, they'll load sequentially rather than simultaneously. This
> produces really weird behaviour sometimes if you have long-running
> scripts.
>
> Here's an example: http://dev.xi.co.nz/frame.php
>
> --
> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> To post, send email to [email protected]
> To unsubscribe, send email to
> [email protected]
>

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to