The path of a PHP script that is silly and unclear

Source: Internet
Author: User
Gossip will not say, or directly put forward today's question, to be exact, a number of similar to the current script information about the global variable constants of the distinction.

First put the code:

 
 "Echo __file__;echo"
 
 "Echo $_server[' Script_filename '];echo"
 
 "Echo $_server[' remote_addr '];echo"
 
 "Echo $_server[' query_string '];echo"
 
 ";

The address in the browser is the root directory of http://localhost/test/test4.php?a=3 localhost.

Now a look, the original carefully read really a bit confused.

Post the results, do not explain more, I believe many people are also at a glance.

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