How does PHP automatically send a GET request?

Source: Internet
Author: User
 
  
 
  How does PHP automatically send a GET request?
Connection?>


PHP files.
As in the code, how to do when you open this page, automatically click on the inside of the "connection" and jump.


Reply to discussion (solution)

Can use curl also can use JS

Jump directly with head location.

 
  


Inside should write PHP syntax content, do not write HTML things, if you have to write the words to be written under
 
  ';.... echo ';? >

    
 
      How does PHP automatically send a GET request?Connection

Send a GET request? It's pingback or something.
The possible options are:
1. file_get_contents, curl, etc.
2. JS control.
3. Hidden iframe or image? no test.

Get the href of a tag in JS
Then location.href= the URL

Opens the page automatically jumps to the specified page, and takes the parameter.

$ (). Ready (function () {  $ ("A"). Trigger ("click");})

In fact, the use of code virtual one-time a-tag click!

  • 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.