How to get parameters from encoded URLs through get

Source: Internet
Author: User
How can I get the http: // domain name/parameter from an encoded url through get /? Id % 3D3% 26server_id % 3Ds1% 26 sign % 3Df44f5ac51cbc95e13102cd5657082dc6 from this link $ _ GET to id & nbsp; server_id & nbsp; & how does nb get parameters from encoded URLs through get?
Http: // domain name /? Id % 3D3% 26server_id % 3Ds1% 26 sign % 3Df44f5ac51cbc95e13102cd5657082dc6

You want to GET the $ _ GET to id server_id and sign parameters from this link.
How do I deal with this link before receiving the php file of parameters?

Can I be more specific?
Newbie, thank you for decoding url php
------ Solution --------------------
Reference:
Reference: PHP code? 12 $ str = "http://www.baidu.com/id%3D3%26server_id%3Ds1%26sign%3Df44f5ac51cbc95e13102cd5657082dc6"; echo urldecode ($ str );
$ _ GET should be available.

The parameters to be obtained are dynamic ......


$a = explode('&', $QUERY_STRING);
$i = 0;
while ($i < count($a)) {
    $b = split('=', $a[$i]);
    echo 'Value for parameter ', htmlspecialchars(urldecode($b[0])),
         ' is ', htmlspecialchars(urldecode($b[1])), " \n";
    $i++;
}    

This is an example of the manual.
------ Solution --------------------
Var_dump ($ _ SERVER ['request _ URI ']);
Var_dump ($ _ SERVER ['script _ name']);
------ Solution --------------------
$str = urldecode($_SERVER['QUERY_STRING']);
parse_str($str, $get);
var_dump( $get['sign'] );
Related Article

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.