Skip to content Skip to sidebar Skip to footer

Get All Scripts From External Website

I have a some code here and I with this code render external page (similar to iframe) but I got a source code. But when I start my code all is good but one window is showing there

Solution 1:

hack way : if you just want to get rid of the window, you just need to add css that hide that window element.

<style>#home_banner_campaign_wrapper,#active_banner_wrap {display:none;}
</style>

by, umm..perhaps like this :

<?php$url = 'http://www.kupime.com/';

$data = file_get_contents($url);

$style = '<style>#home_banner_campaign_wrapper,#active_banner_wrap {display:none;}</style>';

//insert the style just before the closing head tag$data = str_replace('</head>', $style.'</head>', $data);
$data = '<head><base href='.$url.' target="_blank" /></head>'.$data;

echo$data;
?>

well pardon me if this way is too stupid..

Post a Comment for "Get All Scripts From External Website"