Using jQuery/Ajax with PHP to display current progress

后端 未结 3 1893
情话喂你
情话喂你 2021-01-14 17:01

Short and sweet: Looking for a way to call PHP file and display the progress using jQuery and/or Ajax. PHP file upgrade.php?step=1 is called and then the o

3条回答
  •  渐次进展
    2021-01-14 17:39

    There's another approach to this problem.

    I wrote a comprehensive example as an answer to this question:

    Processing large amounts of data in PHP without a browser timeout

    PS: My example can be extended to also pass a message on each progress - in fact, it's quite flexible; you can make it up date only parts of the UI you want according to whatever is happening on the server, sparing the client from unnecessary processing.

提交回复
热议问题