RE: [PHP] No output
| From: | Jason Murray | Date: | Wed, 28 Mar 2001 03:33:26 +0000 |
| Subject: | RE: [PHP] No output | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-45816@lists.php.net to get a copy of this message | ||
> you can't stream output like that.......netscape will wait until your
> HTML output is done, but if you're infinitely looping, it won't be, and
> you'll never get your </body></html> tags.....i've seen a number of
> posts trying to do chats and flush() the output, but bottom line, if you
> don't send it a complete html file, it won't be happy.....one
> suggestion: you could try sending a complete file, then refreshing it
> every few seconds.....but, there would be better ways to do this (like
> java)
Netscape will not neccessarily wait for </BODY> and </HTML>, but it
won't layout a table until it hits a </TABLE>. If the output's all in
a table, this'd cause it. You should also ensure that any <IMG> tags
have WIDTH="" and HEIGHT="" attributes set appropriately as it can
increase layout time otherwise.
Jason