在URL中将URL作为get参数传递

时间:2016-04-30 21:23:33

标签: php url get

   http://example.com/geturl.php?url=http://example.org/index.php?parafile=1698%3A1562%3A0%3A0&para_action=print_ticket&parafile=dance://here.kodas/print&token=3ec2b0d3e6e0ca152bc024cc3f30f16c

所以我希望geturl.php文件中的每个参数都在不同的变量中。我正在使用常规获取网址

2 个答案:

答案 0 :(得分:1)

您可以使用以下任何内容:

$url = "http://example.com/geturl.php?url=".urlencode($urlPart);

答案 1 :(得分:0)

$ _ server [QUERY_STRING]解决了我的问题

相关问题