How to make a request to a web page with PHP?

后端 未结 5 1228
感动是毒
感动是毒 2021-01-21 06:57

What i\'m trying to achieve is this:

1st- I want to query a page like google but without filling it\'s search filed manually 2nd- I want to get the result and save it to

5条回答
  •  醉梦人生
    2021-01-21 07:22

    $html = file_get_contents('http://example.com');
    

    is the simplest version you'll get.

提交回复
热议问题