Progress bar AJAX and PHP

前端 未结 2 2079
长情又很酷
长情又很酷 2020-12-08 12:24

I want to create a progress bar for a server-side task ( written in php )

For learning purposes the example and task would be very simplistic. I would have a te

2条回答
  •  一个人的身影
    2020-12-08 13:02

    Here is the solution to made progress bar in PHP without javascript only on server side:

     echo "
    Start...
    "; for ($i = 0; $i<20; $i++){ echo '
    '; ob_flush(); flush(); usleep(100000); } echo "
    Done!
    ."; ob_end_flush();exit;

提交回复
热议问题