NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page Screenshot Class

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search
7 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 07-08-2008, 05:59 AM THREAD STARTER               #1 (permalink)
Danltn.com
 
Daniel's Avatar
Join Date: May 2007
Location: Danltn.com / Nottingham, UK
Posts: 1,201
Daniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond repute
 


Ethan Allen Fund Ethan Allen Fund

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. (Unfortunately you must be using Windows to take advantage of the COM class, and also have IE running - it's all explained in the code.)

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: Screenshot Class
????: NamePros.com http://www.namepros.com/code/490446-screenshot-class.html

Any advice at all is extremely welcome.

To do:

- Linux support (I can take screenshots via terminal in Linux assuming the set up is correct, but it needs to be ported to PHP.)
- Fix bugs
- Change trigger_error to exceptions.
- Improve code speed
- Rewrite some superfluous parts

Thanks,

Dan
Daniel is offline  
Old 07-08-2008, 06:02 AM   #2 (permalink)
Senior Member
 
tekz999's Avatar
Join Date: Jun 2003
Posts: 3,875
tekz999 has a reputation beyond reputetekz999 has a reputation beyond reputetekz999 has a reputation beyond reputetekz999 has a reputation beyond reputetekz999 has a reputation beyond reputetekz999 has a reputation beyond reputetekz999 has a reputation beyond reputetekz999 has a reputation beyond reputetekz999 has a reputation beyond reputetekz999 has a reputation beyond reputetekz999 has a reputation beyond repute
 



Great idea. Can you teach us how to code php step by step??
tekz999 is online now  
Old 07-08-2008, 08:05 AM THREAD STARTER               #3 (permalink)
Danltn.com
 
Daniel's Avatar
Join Date: May 2007
Location: Danltn.com / Nottingham, UK
Posts: 1,201
Daniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond repute
 


Ethan Allen Fund Ethan Allen Fund
I can teach you how to do this, but certainly not all of PHP.

Try www.PHP.net if you need to check anything about PHP in general.

Dan
Daniel is offline  
Closed Thread


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


 
All times are GMT -7. The time now is 07:24 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger