Php automatically click the button for other websites-php Tutorial

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.