TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
Advertisement
Associates
Associates
techtuts Darkmindz
CSS Tutorials Tutorialsphere.com - Free Online Tutorials
Boston PHP SurfnLearn
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-13-2008, 12:18 PM   #1 (permalink)
The Wanderer
 
Join Date: Jan 2008
Location: Nottingham
Posts: 7
Thanks: 1
Daniel is on a distinguished road
Default 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!

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

Any advice at all is extremely welcome.

Thanks,

Dan
Send a message via MSN to Daniel
Daniel is offline  
Reply With Quote
The Following User Says Thank You to Daniel For This Useful Post:
Yoosha (06-29-2008)
Old 06-13-2008, 01:38 PM   #2 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 1,600
Thanks: 72
Wildhoney is on a distinguished road
Default

Nice Nottingham, eh? Whereabouts? I live in Long Eaton
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 06-13-2008, 03:21 PM   #3 (permalink)
The Acquainted
 
CoryMathews's Avatar
 
Join Date: Nov 2007
Location: USA
Posts: 178
Thanks: 6
CoryMathews is on a distinguished road
Default

Thanks man. I downloaded it and will give it a shot here in the next week or two.
CoryMathews is offline  
Reply With Quote
Old 06-13-2008, 03:38 PM   #4 (permalink)
The Wanderer
 
Join Date: Jan 2008
Location: Nottingham
Posts: 7
Thanks: 1
Daniel is on a distinguished road
Default

Quote:
Originally Posted by Wildhoney View Post
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
Send a message via MSN to Daniel
Daniel is offline  
Reply With Quote
Old 06-13-2008, 06:00 PM   #5 (permalink)
The Frequenter
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 359
Thanks: 3
xenon is on a distinguished road
Default

it only works if you have IE, right?
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
Old 06-13-2008, 06:02 PM   #6 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 1,600
Thanks: 72
Wildhoney is on a distinguished road
Default

I would say so, yes. The one I created a while ago used the IE COM component.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 06-13-2008, 07:36 PM   #7 (permalink)
The Wanderer
 
Join Date: Jan 2008
Location: Nottingham
Posts: 7
Thanks: 1
Daniel is on a distinguished road
Default

As does this one.
Send a message via MSN to Daniel
Daniel is offline  
Reply With Quote
Old 06-13-2008, 10:18 PM   #8 (permalink)
The Frequenter
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 359
Thanks: 3
xenon is on a distinguished road
Default

So...it basically sucks... A platform independent solution like browsrcamp.com would be fine, but an ActiveX solution...that doesn't really excite
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
Old 06-18-2008, 02:11 PM   #9 (permalink)
The Addict
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 247
Thanks: 6
Kalle is on a distinguished road
Default

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

=)
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote
Old 06-27-2008, 08:56 PM   #10 (permalink)
The Acquainted
 
drewbee's Avatar
 
Join Date: May 2008
Posts: 175
Thanks: 9
drewbee is on a distinguished road
Default

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.
__________________
There are No Stupid Questions. But there a LOT of Inquisitive Idiots.
Send a message via AIM to drewbee
drewbee is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 09:59 AM.

 
     

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