PHP Set progress bar method, PHP set progress bar method
The example in this article describes how PHP sets up the progress bar. Share to everyone for your reference. Specific as follows:
<?phpif (ob_get_level () = = 0) { ob_start ();} echo str_pad (' Loading ... ', 4096). "
\ n "for ($i = 0; $i <; $i + +) { $d = $d + one; $m = $d +10; This div would show loading percents echo '. $i. '% complete '; This div would show progress bar Echo '; Flush (); Ob_flush (); Sleep (1);} Ob_end_flush ();? >done.
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/1028974.html www.bkjia.com true http://www.bkjia.com/PHPjc/1028974.html techarticle PHP Set progress bar Method , PHP Set progress bar Method This article describes the PHP Setup progress bar method. Share to everyone for your reference. Specific as follows: Htmlheadstyle type= "text/ ...