Jump to content

snapshot of web page


summericeweb

Recommended Posts

Hello,

I am not sure, but this small routine can capture an un-secured site and convert it to a string.


<?PHP
if(!function_exists("file_get_contents"))
{
function file_get_contents($filename)
{
if(($contents = file($filename)))
{
$contents = implode('', $contents);
return $contents;
}
else
return false;
}
}

$origin2 = 'http://nl2.php.net/file_get_contents';

$siteval = file_get_contents($origin2);

echo '<br><br>';
echo $siteval;
echo '<br>';

?>
Link to comment
https://forums.phpfreaks.com/topic/6662-snapshot-of-web-page/#findComment-24225
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.