How does php automatically click the button for other websites? & Nbsp; RT my website background requires a function. I want to automatically click the search button on the Baidu homepage every 5 minutes. how can I implement this function? Thank you ------ solution ------------------ $ html_textphpfile_get_contents (www. baidu. coms? Wd search keyword php automatically click the button for other websites how to do it?
RT: I need a function in the background of my website. I want to automatically click the search button on the Baidu homepage every five minutes. how can I implement this function? Thank you.
------ Solution --------------------
$ Html_text = php file_get_contents ('http: // www.baidu.com/s? Wd = search keyword ');
$ Html_text is the search result.
------ Solution --------------------
There are three methods:
1. curl
2. socket
3. stream
All three methods can be implemented to simulate user clicks.