Run PHP Task Asynchronously

后端 未结 15 1234
青春惊慌失措
青春惊慌失措 2020-11-22 15:15

I work on a somewhat large web application, and the backend is mostly in PHP. There are several places in the code where I need to complete some task, but I don\'t want to m

15条回答
  •  [愿得一人]
    2020-11-22 15:41

    i think you should try this technique it will help to call as many as pages you like all pages will run at once independently without waiting for each page response as asynchronous.

    cornjobpage.php //mainpage

        
                
    

    testpage.php

         testValue
        ?>
    

    PS:if you want to send url parameters as loop then follow this answer :https://stackoverflow.com/a/41225209/6295712

提交回复
热议问题