summericeweb Posted April 5, 2006 Share Posted April 5, 2006 Do anyone know how to take a "snapshot of web page" with PHP or Perl? Link to comment https://forums.phpfreaks.com/topic/6662-snapshot-of-web-page/ Share on other sites More sharing options...
trq Posted April 5, 2006 Share Posted April 5, 2006 Php and Perl both run on the server not the client. Link to comment https://forums.phpfreaks.com/topic/6662-snapshot-of-web-page/#findComment-24213 Share on other sites More sharing options...
vinson_isap Posted April 5, 2006 Share Posted April 5, 2006 Hello, I am not sure, but this small routine can capture an un-secured site and convert it to a string.<?PHPif(!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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.