Question about a loop output string This post was last edited by xroha from 2013-03-2715: 30: 15 for & nbsp; ($ i1; & nbsp; $ I & lt; 1000000000; & nbsp; $ I ++ & nbsp;) {& nbsp; echo & nbsp; illegal operation !. $ I;} if the number of loops is huge, the browser crashes to ask a question about the loop output string.
This post was last edited by xroha at 15:30:15
For ($ I = 1; $ I <= 1000000000; $ I ++ ){
Echo "illegal operation! ". $ I;
}
If the number of loops is huge, the browser crashes,
Does it affect the WEB server? What is the impact?
------ Solution --------------------
Does not affect the WEB server
The web server has an output buffer, which is output to the user once it is full.
The buffer is usually set to 0 to meet some real-time needs, so there is no impact.
------ Solution --------------------
Reference:
Quote: reference:
Does not affect the WEB server
The web server has an output buffer, which is output to the user once it is full.
The buffer is usually set to 0 to meet some real-time needs, so there is no impact.
Is this for PHP code or JS code?
Of course it's php!
Because you are asking about WEB servers