Contoh Notif Ob_flush php
ob_implicit_flush();
echo '
<span id="progress-text">0</span> Dari ' . $total . '
';
$no = 1;
foreach ($cache as $item) {
$item["urut"] = 0;
$xx = [
'id_prodi_feeder' => $item["id_prodi"]
];
$prodi = query_singkat("prodi", $xx);
$prodi = $prodi[0]["_id"];
//dd($prodi);
$item["id_prodi"] = $prodi;
$item["kode_mk"] = $item["kode_mata_kuliah"];
$item["nama_mk"] = $item["nama_mata_kuliah"];
$item["semester"] = "";
$item["sks"] = $item["sks_mata_kuliah"];
$cache2[] = [
'table' => 'mata_kuliah',
'data' => $item
];
// dd($cache2);
echo "<script>document.getElementById('progress-text').innerHTML = '" . $no++ . "';</script>";
ob_flush();
flush();
// dd($cache2);
}
Lanjut Part : 1
Jam : 16:10:37
Durasi Part : 0:0:1
Durasi Total : 0:0:1
Punya Pertanyaan , Silahkan Whatsapp Langsung
Muhammad Ullil Fahri
WA : 089696380422
Tautan WA : https://wa.me/message/SG4YA2XQP5FPE1
Muhammad Ullil Fahri
WA : 089696380422
Tautan WA : https://wa.me/message/SG4YA2XQP5FPE1