Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- flush();
- ob_flush();
- $i = 0;
- $padstr = str_pad("",512," ");
- echo $padstr;
- while ($i < =4){
- $padstr = str_pad("",512," ");
- echo $padstr;
- echo "boysmakesh <BR> ";
- flush();
- sleep(2);
- $i = $i + 1;
- }
- while (ob_get_level()) ob_end_flush();
- flush();
- function buffer_flush(){
- echo str_pad('', 512);
- echo '<!-- -->';
- if(ob_get_length()){
- @ob_flush();
- @flush();
- @ob_end_flush();
- }
- @ob_start();
- }
- show_view('global', 'header'); // Echos the <html><head>... tags and
- // includes JS and CSS.
- show_view('global', 'splash_screen'); // Shows a loading image telling
- // the user that everything's okay.
- buffer_flush(); // Pretty obvious. At this point the loading view shows
- // up on every browser i've tested (chrome, firefox,
- // IE 7 & 8)
- show_view('global', 'main'); // Has a loop that echos "Test $i<br>" 5
- // times and calls buffer_flush() each time.
- show_view('global', 'footer'); // End the html page and use JQuery to
- // fade out the loading view.
Add Comment
Please, Sign In to add comment