Problem:
I have a page with hundrets of links like:
<a href="/linkto.php?id=35>...
linkto takes the link with id 35 from an database and do a Header("Loction: ...") to the linked page.
So, from my second server I will parse the linkpage and get the real url from an link.
If i try:
$fp=file("/linkto.php?id=35")
I get the content of the URL that the linkto script links to . it works for the content.
So I had the Idea to get the HTML Headers and tried to open a socket on domain www.domain.com and path /linkto.php?id=35 but the opened socket (witch fsockopen) cant understand parameters like ?id=35 and returs a failure.
So, how to get the URL where the linkto.php script links to ?
Regards
Boris