943,946 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 3280
  • PHP RSS
Oct 25th, 2009
0

How to capture the screen shot of the webpage

Expand Post »
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
Similar Threads
Reputation Points: 40
Solved Threads: 7
Junior Poster
architact is offline Offline
114 posts
since Apr 2008
Oct 26th, 2009
0
Re: How to capture the screen shot of the webpage
see if this is useful for you -
PHP Syntax (Toggle Plain Text)
  1. <?php echo "<img src="http://thumbnails.alexa.com/image_server.cgi?size=large&url=$siteurl">"; ?>
Reputation Points: 29
Solved Threads: 76
Practically a Master Poster
network18 is offline Offline
616 posts
since Sep 2009
Oct 26th, 2009
0
Re: How to capture the screen shot of the webpage
<?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.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
dreamlove is offline Offline
4 posts
since Oct 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Variable variables with dynamic array
Next Thread in PHP Forum Timeline: $_FILES help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC