Re: problem with many scripts running at the same time..

From: Date: Thu, 16 Nov 2000 05:29:26 +0000
Subject: Re: problem with many scripts running at the same time..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25614@lists.php.net to get a copy of this message
On Thu, 16 Nov 2000, Timo Haimi wrote: > > Hello all, > > I've got a strange problem with running few scripts at the same time. I'm > developing a webmail and I need it to perform few tasks in the background > (new mail checks etc) in it's own frame. The problem is that the scripts > dont run at the same time for some reason. If one checks mail in frame 1, > the other frame is useless until mailcheck is comlete. You can notice this > yourselves by running the scripts shown below (tested with ie5, ns4 and > ns6): > > --- dotter.php --- > <? > for ($i=0;$i<1000;$i++) { > echo "."; > flush(); > usleep(50000); > } > ?> > --- eof --- > > --- frameset.php --- > <html> > <head> > <frameset rows="50%,50%"> > <frame src="dotter.php"> > <frame src="dotter.php"> > </frameset> > </head> > </html> > --- eof --- > > If I run the frameset, it only executes the first frame and other frame > starts to load after frame1 is completed. If I start 2 browserwindows, both > run the dotter.php at the same time, as it should work. But not when they > are in same session/browser/frameset. Why? And how can I make this frameset > work? And please dont tell me to lose the frameset ;). > > I checked php.ini for something that would solve this and didn't find > anything. > > Thanks in advance, > Timo > I hate to tell you this, but that's a browser issue. However, an idea! Make two files, dotter1.php and dotter2.php, both with the following contents: <?php include("./dotter.php"); ?> or make them symlinks, whichever. Then tell the frames to get those, ahem, "separate" pages. -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#25614) next »