Dynadot

Screenshot Class

Spaceship Spaceship
Watch
Impact
133
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! :D

Anyway, the URL to the class is here: Screenshot Class

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
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Great idea. Can you teach us how to code php step by step??
 
0
•••
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
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back