Jump to content

Recommended Posts

Hey there,

 

I need people to test out my Screenshot class for PHP.

 

Any help is thoroughly appreciated, although I must warn you it has really particular tastes in systems.

 

You can find it at http://www.phpclasses.org/browse/package/4608.html along with an example or two.

 

Any problems, please do post here. Any code improvements are really welcome too! (I know some parts are written a little weirdly, if you could help me iron it out it would be great!)

 

Thanks,

 

Dan

Link to comment
https://forums.phpfreaks.com/topic/109913-screenshot-script-need-testers/
Share on other sites

Guest Xanza

I remember when I set-up apache on my Ubuntu installation (when i first got into php) I write a small script to get a real-time image from the net. :)

 

grab.php

<?php
system('/usr/bin/sudo -u xanza /usr/bin/import -display :0 -window root -resize 1024x768 -quality 999 /www/screenshot.png');
header("Location: ./screenshot.png");
?>

 

 

screenshot.php

<html>
<center>
<br>
<img src="grab.php?i=<?php echo rand(0,100000); ?>" /> 
</html>
<br>
<br>
<a href="javascript:history.go(-1)">Return</a></center>

 

I always thought that it was pretty cool. :)

×
×
  • 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.