zombie45
zombie's dev story
zombie45

공지사항

  • 분류 전체보기
    • iPhone
    • Study

인기 글

최근 댓글

최근 글

티스토리

반응형

블로그 메뉴

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록
  • 글쓰기
전체 방문자
오늘
어제

태그

  • Box2d cocos2dx cocos2d-x
  • Nodejs node express expressjs
  • actions
  • FocusScope
  • 큰파일
  • code spell checker
  • caching
  • nextFocus
  • 큰폴더
  • cache
  • 안드로이드
  • android_key_hash
  • flutter_localizations
  • intl
  • jks
  • Animtaion
  • 티스토리챌린지
  • 자동배포
  • 카카오 로그인
  • CI/CD
  • l10nization
  • 오블완
  • textformfield
  • cspell
  • TextInputAction
  • cocoapods-binary-cache
  • UIViewController
  • Flutter
  • appDelegate
  • flutter l10n helper
hELLO · Designed By 정상우.
zombie45

zombie's dev story

Study

php 실시간 새로고침

2013. 9. 20. 01:56

http://uk3.php.net/flush 참고

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
    'Study' 카테고리의 다른 글
    • 엑셀 메크로
    • 멀티 로칼 서버
    • 블러와 그라디언트
    • Sublime Text2-move to end of line using ctrl+e:
    zombie45
    zombie45
    잡다한 개발

    티스토리툴바