http://developer.yahoo.com/performance/rules.html 참고
... <!-- css, js -->
</head>
<?php flush(); ?>
<body>
... <!-- content -->
다음과같이 헤더바로 다음에 쓰는것을 권장한답니다
ob_end_clean(); for($i=1; $i <=5; ++$i) { echo 'test'.$i.'
'; echo str_pad(' ',256); ob_flush(); flush(); sleep(1); }
다음과 같이 함수로 만들어 쓸수있다.
function flushpage() { ob_end_clean(); echo test.'
'; echo str_pad(' ', 256); ob_flush(); flush(); } for($i=1;$i<=5;++$i){ debug_flush('test'.$i); sleep(1); }
반응형
'Study' 카테고리의 다른 글
엑셀 메크로 (0) | 2013.09.23 |
---|---|
멀티 로칼 서버 (0) | 2013.09.20 |
블러와 그라디언트 (0) | 2013.09.08 |
Sublime Text2-move to end of line using ctrl+e: (0) | 2013.03.12 |
jsonkit (0) | 2013.02.06 |