私はこのようなコードのスニペットを持っています:
$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
現在、関数の各呼び出しをまとめて実行し、最後にメッセージをまとめて表示し、すべての行が繰り返されています。
どうすればこれを解決できますか?