开发者

how to get a data from a url and redirect based on the content

开发者 https://www.devze.com 2022-12-26 14:05 出处:网络
HI.. i want to know how to fetch or get a data from a url(for ex : in the following urlhttp://abc.xyz.com i need to fetch only xyz and have to redirect to that xy开发者_JAVA百科z web page) and have to

HI.. i want to know how to fetch or get a data from a url (for ex : in the following url http://abc.xyz.com i need to fetch only xyz and have to redirect to that xy开发者_JAVA百科z web page) and have to redirect it to the web page based on the content which i fetched.

thank u


Providing you're using PHP:

  • To fetch data from a URL use curl.
  • To redirect use header()
0

精彩评论

暂无评论...
验证码 换一张
取 消