Jump to content

Archived

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

summericeweb

snapshot of web page

Recommended Posts

Php and Perl both run on the server not the client.

Share this post


Link to post
Share on other sites
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>';

?>

Share this post


Link to post
Share on other sites

×

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.