我有這樣的代碼片段:顯示消息
$response = "<div style='font-size:18px;margin-top:2em;text-align:center;color:#173f5f;>";
$response .= "Intializing sequence...";
echo $response;
$response .= "Starting compression of folders...";
echo $response;
$response .= "Compressing all photos now...";
echo $response;
$ph = compress('photos');
$response .= "Photo compression complete.";
$response .= "Compressing all signatures now...";
echo $response;
$sg = compress('signatures');
$response .= "Signature compression complete.";
$response .= "Compressing all excel files now...";
echo $response;
$excel = compress('uploads');
$response .= "Excel files compression complete.</div>";
echo $response;
我想顯示的消息compress
函數調用的每行之後,但現在,它的運行每次通話的函數,然後在每一行重複的結尾顯示消息。
我該如何解決這個問題?
有人請指導使其成爲實時.. – coder101