how to get a data from a url and redirect based on the content
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()
精彩评论