2016-04-30 102 views
-6
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文件中的每个参数都位于不同的变量中。我使用的是常规的获取URL在php中传递一个URL作为get参数

+1

你有什么迄今所做实现这一目标?发布您的代码。 – Marcus

+1

http://php.net/manual/en/function.parse-str.php – Mihai

回答

1

您可以使用这样的事:

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

$ _ SERVER [QUERY_STRING]解决我的问题