Valuate Domain Names
DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars
HomeRegisterMembershipsGetting StartedDomain Tools Domain EbooksSEO Software Domain Resellers Advertise

Go Back   DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars > Content Development > Website Development and Design Discussion > Coding/Programming/Languages
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 07-14-2008, 11:58 PM   #1 (permalink)
DropBusiness.com
 
Drop Business's Avatar
 
Last Online: 09-12-2009 12:31 PM
iTrader: (5)
Join Date: Jun 2004
Posts: 281
DNF$: 128
Country:

Send a message via MSN to Drop Business

PHP clone script

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.
__________________
Keep Hydrated at waterbelts.com
Drop Business is offline   Reply With Quote
Sponsored Ads
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:23 AM.
Copyright @2001-2009 DNForum.com