sleep 的复杂问题
<br /><?php<br />echo date('h:i:s') . "<br />";<br />?><br /><IFRAME width="100" height="100" border=0 name=top marginWidth=0 frameSpacing=0 marginHeight=0 src="2.php" frameBorder=0 noResize scrolling=no vspale="0"></IFRAME><br /><?php<br />sleep(3);//暂停:把进程挂起一段时间<br />?><br />
上面代码,它现在是暂停以后才执行IFRAME
要怎么改,让sleep不影响到IFRAME里面的2.php
------解决思路----------------------这是体系问题
IFRAME 要在发送到浏览器以后,由浏览器执行
但你把 php 挂起了 3 秒(sleep(3)),于是 IFRAME 要到 php 重新运行页后才会被发送
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn