日期:2014-05-17 浏览次数:20583 次
<?php
@ob_start();
include 'test.tpl.php';
@ob_end_flush();
sleep(3);
//---------------------------------
// invoke client js
$s = sprintf("\n<script>%s.%s();</script>", 'oCar', 'updateDiv1');
// output the buffer to client
echo $s;
unset($s);
@flush();
//----------------------------------
sleep(3);
// invoke client js
$s = sprintf("\n<script>%s.%s();</script>", 'oCar', 'updateDiv2');
// output the buffer to client
echo $s;
unset($s);
@flush();