document.getElementById("refreshLabel").innerHTML = "Updating: '.$following[1].' ('.$i.' of '.$total.')"; document.getElementById("refreshProgress").value = "'.$float.'"; document.getElementById("refreshProgress").innerHTML = "'.$percent.'"; '; updateCachedFile($following[1]); ob_flush(); // Send output to browser immediately flush(); $i++; } // Tell user that the process is completed echo '';