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

后端 未结 12 947
终归单人心
终归单人心 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:25

    This seems weird idea but maybe it's what you are looking for if you want to do it in PHP without touching HTML/JS:

    
    

    The above is preety OK in theory, but in practice it will result in VERY memory consuming app. So be warned.

    And please don't downvote me, this is only a theoretical dispute.

提交回复
热议问题