TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Advanced PHP Programming (http://www.talkphp.com/advanced-php-programming/)
-   -   Screenshot class (http://www.talkphp.com/advanced-php-programming/2957-screenshot-class.html)

Daniel 06-13-2008 11:18 AM

Screenshot class
 
Hey there everyone,

Class URL

I recently wrote a screenshot class, which (as you might expect) allows PHP to take screenshots providing their system all checks out.

Some parts of the code are fairly messy, and probably written when I was drunk, so I was just looking for some criticism (and even better, improvements) to the code.

And yes, I know some bits are (very) odd, but try not to hurt my feelings too much! 8-)

Anyway, the URL to the class is here: Class: Screenshot (internet, screenshot, explorer) - PHP Classes

Any advice at all is extremely welcome.

Thanks,

Dan

Wildhoney 06-13-2008 12:38 PM

Nice :-) Nottingham, eh? Whereabouts? I live in Long Eaton :-(

CoryMathews 06-13-2008 02:21 PM

Thanks man. I downloaded it and will give it a shot here in the next week or two.

Daniel 06-13-2008 02:38 PM

Quote:

Originally Posted by Wildhoney (Post 15617)
Nice :-) Nottingham, eh? Whereabouts? I live in Long Eaton :-(

I know you do :-)

If you check your private messages from a long time back (if you still have them) you'll see we talked about it ^^

Chilwell btw, very close.

Dan

xenon 06-13-2008 05:00 PM

it only works if you have IE, right?

Wildhoney 06-13-2008 05:02 PM

I would say so, yes. The one I created a while ago used the IE COM component.

Daniel 06-13-2008 06:36 PM

As does this one.

xenon 06-13-2008 09:18 PM

So...it basically sucks... A platform independent solution like browsrcamp.com would be fine, but an ActiveX solution...that doesn't really excite :-)

Kalle 06-18-2008 01:11 PM

Any browser with COM directive can be implemented, but since IE is build into Windows then its it nature to have a COM directive. If I don't remember wrong then other applications such as Photoshop, Office ect. have a COM directive aswell.

However I already guessed it was using the imagegrabwindow() / imagegrabscreen() functions, however they can be EXTREMELY slow and you will also need to grand your webserver permissions to interact with the desktop in services.msc

=)

drewbee 06-27-2008 07:56 PM

nice mate. I personally use the service over at bluga.net/webthumb/ .

Its powerful, and is rather cheap too.

Its nice seeing one of these in action though, even with its limitations.


All times are GMT. The time now is 03:27 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0