How to capture the screen shot of the webpage

Reply

Join Date: Apr 2008
Posts: 109
Reputation: architact is an unknown quantity at this point 
Solved Threads: 7
architact's Avatar
architact architact is offline Offline
Junior Poster

How to capture the screen shot of the webpage

 
0
  #1
Oct 25th, 2009
Hello, I am assigned with the task of cloning digg.com, I am doing quite well except one issue, I want the user to enter a link in a text field and then I want the take a screen shot of that url (like digg.com). Please help me with what libraries should I use.

Thanks
If you think we fight for money and you fight for honor, then remember everyone fights for the thing they don't have...
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 525
Reputation: network18 is an unknown quantity at this point 
Solved Threads: 61
network18 network18 is offline Offline
Posting Pro
 
0
  #2
Oct 26th, 2009
see if this is useful for you -
  1. <?php echo "<img src="http://thumbnails.alexa.com/image_server.cgi?size=large&url=$siteurl">"; ?>
"The discipline of writing something down is the first step towards making it happen."

follow me on twitter
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 4
Reputation: dreamlove is an unknown quantity at this point 
Solved Threads: 1
dreamlove dreamlove is offline Offline
Newbie Poster
 
0
  #3
Oct 26th, 2009
<?php
$im = imagegrabscreen();
imagepng($im, "myscreenshot.png");
?>

php5.2.2 gd5.2.2

===========================================
imagegrabscreen

(PHP 5 >= 5.2.2)

imagegrabscreen — Captures the whole screen

HAVE A LOOK :
http://cn.php.net/manual/en/function...grabscreen.php
Last edited by dreamlove; Oct 26th, 2009 at 5:30 am.
Reply With Quote Quick reply to this message  
Reply

Tags
image, screen, shot

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC