Send HTTP request from PHP without waiting for response?

后端 未结 10 905
温柔的废话
温柔的废话 2020-12-08 00:25

I want to have an HTTP GET request sent from PHP. Example:

http://tracker.example.com?product_number=5230&price=123.52

The idea is to d

10条回答
  •  [愿得一人]
    2020-12-08 01:03

    I needed to do something similar, just ping a url and discard all responses. I used the proc_open command which lets you end the process right away using proc_close. I'm assuming you have lynx installed on your server:

    
    

提交回复
热议问题