Hi everyone,
I'm am trying to open a page's source code on the Internet using the function file_get_contents, and echoing the result (if you haven't already guessed, this is going to be a simplified proxy script).
However, the page doesn't appear like it should, mainly because the CSS file is missing. Here is the line of code that is causing me a problem:
<link media="all" href="css/home25.css" type="text/css" rel="stylesheet" />
Since the page has no idea where "css/home25.css" is, it thinks it doesn't exists and does nothing about it, so the page displays incorrectly.
How can I make it so that when a URL is posted to the page, PHP opens those CSS and .js files with their proper domain, like this:
<link media="all" href="http://www.proxifiedurl.com/css/home25.css" type="text/css" rel="stylesheet" />
Thanks.