PHP and jQuery progress bar while parsing

前端 未结 4 821
走了就别回头了
走了就别回头了 2021-01-03 05:52

I was wondering how I could go about making a progress bar for parsing HTML data. Essentially the user searches something and I parse another website. I tried doing it with

4条回答
  •  攒了一身酷
    2021-01-03 06:38

    I found another way to do it, this is to help all of those people that have the same question. I found it out on here http://w3shaman.com/article/php-progress-bar-script

    
    
    
        Progress Bar
    
    
    
    
    document.getElementById("progress").innerHTML="
     
    "; document.getElementById("information").innerHTML="'.$i.' row(s) processed."; '; // This is for the buffer achieve the minimum size in order to flush data echo str_repeat(' ',1024*64); // Send output to browser immediately flush(); // Sleep one second so we can see the delay sleep(1); } // Tell user that the process is completed echo ''; ?> ?>

提交回复
热议问题