On my local dev, everything works fine. On the server, I get a black
screen. I have spent hours trying to figure this out, but no luck. I
HAVE checked the "Allow service to interact with desktop", on both
systems.
Here is the code:
<?PHP
header('Content-type: image/jpeg');
$im = imagegrabscreen();
imagejpeg($im);
?>
Anyone have any other ideas about this? TIA!
Sorry, I don't understand what you're getting at. There is no useful
information addressing my problem there.
If I use EXACTLY the code in the example, I get a black PNG.
I've already stated that I HAVE checked "Allow service to interact
with desktop".
PHP runs on the server, and cannot grab a screen on your client.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net
==================
Yes, I understand this.
I'm not trying to grab a screen on my client. I am EXPECTING a
screenshot from the SERVER.
When I run on my dev machine, using localhost, the above code works
fine. It grabs a screenshot of the local system, as it should.
When I run on my SERVER, I get a black image. This happens whether I
access the script remotely via HTTP, or if I use Remote Desktop, log
in, and access it via localhost.
I have exactly the same problem with imagegrabwindow, too.
I'm trying to determine why the server won't deliver anything but a
black image, whether using imagegrabscreen or imagegrabwindow.
is the server equipped with a screen?
Yeah - I just had one of the techs go hook up directly to the server
and it works fine that way. And while that session is logged in, it
seems everything works fine remotely, too, both with remote desktop
and via http.
Not sure how well that's going to work long-term, though. :(
What does the server have on it's screen?
Does it work as expected if you start Apache with a regular user rather
that "Local System"?
--
-- http://alvaro.es - �lvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programaci�n web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
As far as I know, "Windows 2003 Server" is a platform that fulfils that
requirement ;-)