SomeGuy1337 Posted April 9, 2006 Share Posted April 9, 2006 Hi,im having some trouble with firefox and streaming php scriptfor 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 windowsfirefox 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 Quote Link to comment https://forums.phpfreaks.com/topic/6933-firefox-and-continuous-php-scirpt/ Share on other sites More sharing options...
SomeGuy1337 Posted April 9, 2006 Author Share Posted April 9, 2006 ok further testing i have conclued that firefox will not make the ezact same request simaltaniously in multiple windowsieGET /somepage.phpif you had this request in 2 windows on firefox it would que each window to load in a linear fasionfirefox will handleGET /somepage.php?hmmandGET /somepage.phpat 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 behavornow i am not sure if it is possible at all to get firefox to do this Quote Link to comment https://forums.phpfreaks.com/topic/6933-firefox-and-continuous-php-scirpt/#findComment-25169 Share on other sites More sharing options...
SomeGuy1337 Posted April 12, 2006 Author Share Posted April 12, 2006 no ideas ne1? Quote Link to comment https://forums.phpfreaks.com/topic/6933-firefox-and-continuous-php-scirpt/#findComment-26147 Share on other sites More sharing options...
kenrbnsn Posted April 12, 2006 Share Posted April 12, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/6933-firefox-and-continuous-php-scirpt/#findComment-26180 Share on other sites More sharing options...
SomeGuy1337 Posted April 12, 2006 Author Share Posted April 12, 2006 ive uesd a streaming inline frame to dynamily update content in real timefor example a chat script.im doing something that all the current browsers are comfortable with, keeping alive connection and rendering content as it comes inits 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 queryi was merely curious if anyone new how to get around this. Quote Link to comment https://forums.phpfreaks.com/topic/6933-firefox-and-continuous-php-scirpt/#findComment-26285 Share on other sites More sharing options...
trq Posted April 12, 2006 Share Posted April 12, 2006 You would be much better off looking into ajax. This site has a sister site [a href=\"http://ajaxfreaks.com\" target=\"_blank\"]ajaxfreaks.com[/a] that may be of some use. Quote Link to comment https://forums.phpfreaks.com/topic/6933-firefox-and-continuous-php-scirpt/#findComment-26287 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.