how to call a function in PHP after 10 seconds of the page load (Not using HTML)

后端 未结 12 968
终归单人心
终归单人心 2020-12-11 02:44

Is there any way to call a function 10 seconds after the page load in PHP. (Not using HTML.)

12条回答
  •  鱼传尺愫
    2020-12-11 03:16

    You can create a Javascript timer that calls the function every ten seconds.

    Tutorial here

    (10 seconds is 10000 milliseconds)

提交回复
热议问题