Guest User

Untitled

a guest
Jun 24th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. flush();
  2. ob_flush();
  3.  
  4. $i = 0;
  5. $padstr = str_pad("",512," ");
  6. echo $padstr;
  7.  
  8. while ($i < =4){
  9. $padstr = str_pad("",512," ");
  10. echo $padstr;
  11. echo "boysmakesh <BR> ";
  12. flush();
  13. sleep(2);
  14. $i = $i + 1;
  15. }
  16.  
  17. while (ob_get_level()) ob_end_flush();
  18.  
  19. flush();
  20.  
  21. function buffer_flush(){
  22.  
  23. echo str_pad('', 512);
  24. echo '<!-- -->';
  25.  
  26. if(ob_get_length()){
  27.  
  28. @ob_flush();
  29. @flush();
  30. @ob_end_flush();
  31.  
  32. }
  33.  
  34. @ob_start();
  35.  
  36. }
  37.  
  38. show_view('global', 'header'); // Echos the <html><head>... tags and
  39. // includes JS and CSS.
  40.  
  41. show_view('global', 'splash_screen'); // Shows a loading image telling
  42. // the user that everything's okay.
  43.  
  44. buffer_flush(); // Pretty obvious. At this point the loading view shows
  45. // up on every browser i've tested (chrome, firefox,
  46. // IE 7 & 8)
  47.  
  48. show_view('global', 'main'); // Has a loop that echos "Test $i<br>" 5
  49. // times and calls buffer_flush() each time.
  50.  
  51. show_view('global', 'footer'); // End the html page and use JQuery to
  52. // fade out the loading view.
Add Comment
Please, Sign In to add comment