Home  >  Article  >  Backend Development  >  php 如何根据一个人url获取跳转后的url

php 如何根据一个人url获取跳转后的url

WBOY
WBOYOriginal
2016-06-02 11:32:361435browse

跳转php

<code> <dt><a href="http://ord.yahoo.co.jp/o/shopping/_ylt=A3JvdlKsFx5VRzIAzyMT.Pl7;_ylu=X3oDMTBhcGdnMXMzBHZ0aWQDU1MwMDM-/SIG=14t4nubp7/EXP=1428121900/**http%3a//rdsig.yahoo.co.jp/search/direct/promodd/evt=90004/RV=1/RU=aHR0cDovL3N0b3JlLnNob3BwaW5nLnlhaG9vLmNvLmpwL21hdHN1bmFtaS9mY2RtMy5odG1s" onmousedown="if (checkSiteCatalyst()) {YAHOO.JP.sc.clickSearchResultPos('item=search|type=organic|disp=20|pg=1|pos=1')}"><em>ヒルズ</em> 猫用 <em>c/d</em> マルチケア 4kg 療法食</a></dt></code>

php,我模拟手机浏览器去访问yahoo的页面,取得商品的url如下:
http://ord.yahoo.co.jp/o/shopping/_ylt=A7dPdCbPKx5V.SgAqVET.Pl7/SIG=14t4hc3s6/EXP=1428127055/**http%3a//rdsig.yahoo.co.jp/search/direct/promodd/evt=90004/RV=1/RU=aHR0cDovL3N0b3JlLnNob3BwaW5nLnlhaG9vLmNvLmpwL21hdHN1bmFtaS9mY2RtMy5odG1s" onmousedown="if (checkSiteCatalyst()) {YAHOO.JP.sc.clickSearchResultPos('item=search|type=organic|disp=20|pg=1|pos=1')}
点击该商品名(如上url)后,就会跳转到该商品的页面,url如下:
http://store.shopping.yahoo.co.jp/matsunami/fcdm3.html
能不能根据从页面上取得的url,获得跳转后的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