1. 2015. 4. 9. 03:35 개발자료/W3C

PHP 에서 지연을 통한 나누어진 문장을 보낼때 사용합니다
 

<?php

@ini_set('max_execution_time',1);
 

echo "Testing time out in seconds\n";
for($i=0;$i<10;$i++){
  echo "$i second\n";
  if(sleep(1)!=0){
    echo "failed message `sleep`\n";
    break;
  }
  flush();
  ob_flush();
}
?>

Posted by Nightly Luna
,
® © Tanny Tales
/ rss