Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $random = md5 ( rand () . microtime () );
- header( 'Content-type: multipart/x-mixed-replace;boundary=' . $random );
- echo "\n--$random\n";
- $i = 1;
- while ( $i < 5 ){
- echo "Content-type: text/html\n\n";
- echo "<b>$i</b>\n";
- echo "--$random\n";
- $t = do_output ();
- $i++;
- }
- echo "Content-type: text/html\n\n";
- echo "<h1> http headers are fun</h1>\n";
- echo "--$random--\n";
- function do_output ()
- {
- $t = flush();
- $t = ob_flush();
- usleep(3000000);
- return 0;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment