Horje
php auto scoll page with output Code Example
php auto scoll page with output
<script>
var scroller = setInterval(function() {  
    window.scrollTo(0,document.body.scrollHeight);
}, 10); // update every 10 ms, change at will
</script>
<?php
// generate 1000 lines of html code
for($i=0; $i<1000; $i++){
    echo $i . "<br>";
    ob_flush(); // flush out the output as we go
    flush(); // same
    usleep(10000); // add some delay to see it in action  
}

?>

<script>
clearInterval(scroller); // stop updating so that you can scroll up 
</script>




Php

Related
laravel flutter save image in data Code Example laravel flutter save image in data Code Example
How to write a loop in PHP Code Example How to write a loop in PHP Code Example
confirm password in codeigniter Code Example confirm password in codeigniter Code Example
wordpress convert non negative Code Example wordpress convert non negative Code Example
remove all post in wordpress by query Code Example remove all post in wordpress by query Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6