Skip to content

Commit

Permalink
Added the backup_flush function use to send some data to the browser
Browse files Browse the repository at this point in the history
flushing output inmediately
  • Loading branch information
stronk7 committed Jun 12, 2003
1 parent d2c94f4 commit 60b420a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions backup/lib.php
Expand Up @@ -365,6 +365,18 @@ function backup_required_functions() {
}

}

//This function send n white characters to the browser and flush the
//output buffer. Used to avoid browser timeouts and to show the progress.
function backup_flush($n=0,$time=false) {
if ($time) {
$ti = strftime("%X",time());
} else {
$ti = "";
}
echo str_repeat(" ", $n) . $ti . "\n";
flush();
}


?>

0 comments on commit 60b420a

Please sign in to comment.