首页 > 代码库 > ajax反推

ajax反推

<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 14-12-2
* Time: 下午7:22
*/
set_time_limit(0);
ob_start();
$pad = str_repeat(‘ ‘,4000);
echo $pad,‘<br/>‘;
ob_flush();
flush();

$i=1;
while($i++){
echo $pad,‘<br/>‘;
echo $i,‘<br/>‘;
ob_flush();
flush();
sleep(1);
if($i==10){
break;
}
}

技术分享

 

ajax反推