file_get_contents links help

Basically, I want to make it so I use a form to enter a web address and use the GET[‘link’] variable and give that to file_get_contents and echo to display that page. The page displays just fine. However, I’m having trouble, because some websites use relative paths in their hrefs. I want each link to redirect back to the form website that I created with the absolute path to to the link that was clicked on and pass that as the GET[‘link’] variable, so the process would just keep cycling. Any ideas?

Hi, can you provide me any example of websites use relative paths in their hrefs. so i can provide any suggestion and solution to you. ~~SR~~
Sponsor our Newsletter | Privacy Policy | Terms of Service