Jump to content

firefox and continuous php scirpt


SomeGuy1337

Recommended Posts

Hi,

im having some trouble with firefox and streaming php script
for example:
<code>
echo str_pad("\n", 1024);
while (true)
{
echo "hihi<br />";
flush();
usleep(100000);
}
</code>

opera and IE6 will be able to run 2 windows where the script will run simaltaniously on both windows
firefox how ever will only load 1 script, and que teh 2nd window to load after the first window has finihsed loading... which of course will not happen.

i figure there is probably a way around this with headers similer to a download script
Link to comment
Share on other sites

ok further testing i have conclued that firefox will not make the ezact same request simaltaniously in multiple windows
ie
GET /somepage.php
if you had this request in 2 windows on firefox it would que each window to load in a linear fasion
firefox will handle
GET /somepage.php?hmm
and
GET /somepage.php
at the same time.

download scripts take post/get data so firefox makes a seperate request and thus a downoad scirpt would be uneffected by this behavor

now i am not sure if it is possible at all to get firefox to do this
Link to comment
Share on other sites

Can you explain why you want to do this? Web pages (HTML) is a stateless protocol and is not designed for continuous access. Perhaps you are trying to do something that is not in the HTML specs and IE just happens to work because it doesn't follow the specs as tightly as FF.

Ken
Link to comment
Share on other sites

ive uesd a streaming inline frame to dynamily update content in real time
for example a chat script.

im doing something that all the current browsers are comfortable with, keeping alive connection and rendering content as it comes in
its an issue with just 1 aspect of firefox's procedure taht is handling an operating that doesnt have nor require any W3C standered etc.

normaly i woulndt want a single client to be runnin multiple instances of the same script simaltaniously, and if i did for some reason then i could get around it by altering the query

i was merely curious if anyone new how to get around this.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.