- 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
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