|
Posted by tg-php on 11/14/40 11:22
Launching a brower shouldn't be difficult.. there's a few ways to do that. Taking the screenshot might be trickier though. I don't know of any function in IE that'll take a screenshot so don't know if you could do it through a COM interface to IE.
My first impulse was to maybe check out the PHP extension Winbinder:
http://www.hypervisual.com/winbinder/
But while it gives you access to low level Windows API functions, it might take some hacking to get it to get you a screenshot.
A non-php solution might be to use something like WinBatch. It's a Windows scripting/automation language that I've used in the past. It DOES have a Snapshot() function and can probably do everything you need.
http://www.winbatch.com/
The program costs money, but there are more inexpensive programs that have WIL (WinBatch Interactive Language?) scripts. I remember using a program called ClockMan95 to run the scripts. It cost like $30 versus the $90+ for WinBatch.
So that's what comes to mind for me..
1. COM PHP -> IE
2. WinBinder PHP Extension
3. WinBatch
Good luck!
-TG
= = = Original message = = =
Hi all
We just bought ourselfs a very basic windows station so that we can test our
php and html applications on windows as well. For the html applications, a
simple screen shot of how it looks in internet explorer is sufficient.
I know how to handle http authentication, file uploads, streaming files back
to the browser and all that, but would like some advise on how I can control
internet explorer from php.
The scheme: a coworker logs on on the page, enters a local network url, the
scripts launches internetxplorer with that url, takes a screen shot picture
and streams that back to the browser.
Any ideas anyone?
With kind regards
Andy
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
Navigation:
[Reply to this message]
|