localhost/sitemap.htm
i want to fetch its its html and wanted to display its html at
localhsot/site_edit/open.php
but i don't want to loos my links, and images, i wanted all the image and css should work fine.
Please help me. what happens is : i can't see the image as the path shows something like : localhost/site_edit/images/spacer.gif it should be localhost/images/spacer.gif so that i can see the correct image.
I am doing like this:
Code: Select all
if(isset($_GET['log']))
{
$tmp = $_GET['log'];
$tmp = str_replace("..//","../",$tmp);
$contents = fopen("../www/$tmp","r");
while (!feof($contents))
{
$read = fread($contents,999999);
}
fclose($contents);
}then I tried :
Code: Select all
$read = str_replace("src=\"","src=\"../",$read);thanks.