Home  >  Article  >  Backend Development  >  PHP获取URL跳转后的链接,该怎么解决

PHP获取URL跳转后的链接,该怎么解决

WBOY
WBOYOriginal
2016-06-13 12:32:27813browse

PHP获取URL跳转后的链接
$url=
http://s.click.taobao.com/t?e=m%3D2%26s%3DNUvtFDcIwOocQipKwQzePOeEDrYVVa64LKpWJ%2Bin0XJRAdhuF14FMR8WZHEPpGYi8sviUM61dt3fihkA92r7Zcnjyd38oaEmgUaFy6v5pIPjBFxotqUef4wnVsVnnsB8
跳转到
$result=
http://item.taobao.com/item.htm?id=23547888655&ali_trackid=2:mm_41992893_0_0:1385292898_6k3_1991321817

$url 是从阿里妈妈获取的推广链接,他的页面内容是JS的,他通过JS跳转到了 $result ,我想通过$url获取$result,用php能封装这个功能吗?

php url 跳转后 获取 淘宝
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn