Re: PHP interference in frames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



PHP Superman wrote:
I'm taking a wild guess here, maybe the browser insists on waiting for some
content but it's maximum content wait time is 5 seconds, the browser could
detect the connection to the server is still open and wait for 5 seconds or
another time

to get an idea of what the browser is doing (how its waiting etc)
tail the webserver log to see how/when the requests come in - should give
you a clue as to what is happening:

either the server puts them on hold or the browser is holding back sending
the request.


On 12/22/05, Ron Rudman <ron@xxxxxxxxxxxxx> wrote:

I've got this down to a bare bones test but am still stumped.  Can anyone
explain why I get the behavior I do?

I have a frameset with 3 frames:
<html>
<head><title>testing</title></head>
<frameset rows='100,100,*'>
   <frame src='test1.php'></frame>
   <frame src='test2.php'></frame>
   <frame src='test3.php'></frame>
</frameset>
</html>

test1.php and test2.php are both simply:    <? sleep(5); ?>
test3.php is simply:   <? echo "This is some content"; ?>

When I invoke the main frameset, the output from test3.php takes 5 seconds
to appear.
If I comment out either one of the sleep calls, the output from test3.phpis
immediate, which is what I expected in the first place.

I have session.auto_start = 0 in php.ini, so this has nothing to do with
sessions.
I am running php 5.0.5.
I get the same results with both apache 2/mod_php and lighttpd/fastcgi,
the
latter with 40 php processes running.

I thought that each frame in a page was executed independently and
asynchronously, yet frame4.php insists on "waiting" for one of the other
frames to complete  (if the sleeps are 5 and 10, frame3 produces its
output
after 5 seconds).

What am I missing here?

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





--
Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!


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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux