} while (1);
}
?>
Make sure there are no blank lines outside the <? ?> in your script. That will cause screwey headers to be sent too soon.
Reference the script in your HTML page as if it was an image:
<IMG SRC="http://www.webjx.com/htmldata/2005-03-05/server-push.php" HEIGHT=240 WIDTH=320>
Use this bit of PHP on the page that references the image to compensate for IE's lack of "innovation":
<HEAD>
<?
if (ereg("MSIE",$HTTP_SERVER_VARS["HTTP_USER_AGENT"])) {
echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"4;\">\n";
}
?>
</HEAD>
| 对此文章发表了评论 |
