Forum Moderators: coopster
[webmasterworld.com...]
Unfortunately, I could not figure out how to use it.
My case is simple. I have a PHP file named "fetch.php" that fetches a HTML page from my other website. In this file, I only have 1 line of code:
<?php
include("http://myothersite.com/index.html");
?>
Can someone please tell me what code should I add to fetch.php so that it displays [myothersite.com...] in absolute URL?
I really need help on this. I have gone through many forums for the past 20 hours (a little dizzy and very tired). Please help!
//fetch.php
<?php
ob_start();
include (file/from/other/site);
$out = ob_get_contents();
ob_end_clean();
//do your replacing of links here
print $out; //display the web page with changed links
?>