[PHP-DEV] Bug #10752 Updated: infinite loops prevents pages from loading

2001-05-10 Thread anabolic

ID: 10752
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: *Programming Data Structures
Operating system: Linux and Win2k
PHP Version: 4.0.4pl1
Description: infinite loops prevents pages from loading

This is going to be used for a chat board, there will be an infinite loop which reads 
from a mySQL db and flushes the output. 

I tought there was something wrong with my db access code however I realised that, the 
code was not working altough I have simplified it as I have posted.

I have tried with different os and web server software. I have tried Linux  Apache 
and Win2k  IIS5.

When I open the page, it works fine. When I open the same page in another window at 
the same computer it still works fine however if I try to open a third browser window 
(private chat with 3 person for instance) the browser window freezes and if I close 
one of the previous browser windows the third window starts working.

Thank you,

Argun

Previous Comments:
---

[2001-05-09 10:42:15] [EMAIL PROTECTED]
1.) Why are you doing an infinite loop in the first place?

2.) This is working just fine for me on my linux machine with 4.0.5.

-Chris

---

[2001-05-09 10:01:38] [EMAIL PROTECTED]
html

head
meta http-equiv=Content-Type content=text/html; charset=windows-1254
titleLoop/title
/head
body
?
for($value=1; $value0; $value++){
echobr$value;

flush();
sleep(1);
}
?
/body

/html

The code above does not work when opened in more than two browsers on the same 
computer. 

Any ideas?

Thank you. 

---


Full Bug description available at: http://bugs.php.net/?id=10752


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10752 Updated: infinite loops prevents pages from loading

2001-05-10 Thread anabolic

ID: 10752
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: *Programming Data Structures
Operating system: Linux and Win2k
PHP Version: 4.0.4pl1
Description: infinite loops prevents pages from loading

I have tried a meta tag, but the screen flashes when the page is refreshed.

In addition to my previous postings, when I open two browser windows by clicking on 
their icons and write the address in the address box, the script works, when I press 
the ctrl-n keys and open a new browser window the script freezes.

Thank you,

Argun

Previous Comments:
---

[2001-05-10 11:25:03] [EMAIL PROTECTED]
This sounds like an unreliable way to accomplish your goal, as you are finding out.

Don't you think it would be better to simply have a META tag refresh the chat session 
(could be a frame or what not) every X seconds?  Could have the user list in a 
seperate frame and the message entry area in another.

-Chris

---

[2001-05-10 07:45:16] [EMAIL PROTECTED]
This is going to be used for a chat board, there will be an infinite loop which reads 
from a mySQL db and flushes the output. 

I tought there was something wrong with my db access code however I realised that, the 
code was not working altough I have simplified it as I have posted.

I have tried with different os and web server software. I have tried Linux  Apache 
and Win2k  IIS5.

When I open the page, it works fine. When I open the same page in another window at 
the same computer it still works fine however if I try to open a third browser window 
(private chat with 3 person for instance) the browser window freezes and if I close 
one of the previous browser windows the third window starts working.

Thank you,

Argun

---

[2001-05-09 10:42:15] [EMAIL PROTECTED]
1.) Why are you doing an infinite loop in the first place?

2.) This is working just fine for me on my linux machine with 4.0.5.

-Chris

---

[2001-05-09 10:01:38] [EMAIL PROTECTED]
html

head
meta http-equiv=Content-Type content=text/html; charset=windows-1254
titleLoop/title
/head
body
?
for($value=1; $value0; $value++){
echobr$value;

flush();
sleep(1);
}
?
/body

/html

The code above does not work when opened in more than two browsers on the same 
computer. 

Any ideas?

Thank you. 

---


Full Bug description available at: http://bugs.php.net/?id=10752


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10752: infinite loops prevents pages from loading

2001-05-09 Thread anabolic

From: [EMAIL PROTECTED]
Operating system: Linux and Win2k
PHP version:  4.0.4pl1
PHP Bug Type: *Programming Data Structures
Bug description:  infinite loops prevents pages from loading

html

head
meta http-equiv=Content-Type content=text/html; charset=windows-1254
titleLoop/title
/head
body
?
for($value=1; $value0; $value++){
echobr$value;

flush();
sleep(1);
}
?
/body

/html

The code above does not work when opened in more than two browsers on the same 
computer. 

Any ideas?

Thank you. 


-- 
Edit Bug report at: http://bugs.php.net/?id=10752edit=1



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]