If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!I am a php novice.
I am trying to write a script that displays a copy of another webpage.
I keep running into the same problem: Relative paths!
Images and links are in the html as relative to the original url.
I would like to replace the relative path with an absolute one so that the page works.
<?php
$file = file_get_contents ("http://www.google.com");
echo $file;
?>
gives: http://www.drzo.com/cb/1.php
As you can see the google image is broken due to relative paths.
I have tried php includes and I have the same problem.
Help this is driving me CRAZY!!!
Thanks,
DB.
Bookmarks