PHP File Contents Screenshot

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
mikeeeeeeey
Forum Contributor
Posts: 130
Joined: Mon Jul 03, 2006 4:17 am
Location: Huddersfield, UK

PHP File Contents Screenshot

Post by mikeeeeeeey »

Hi everyone,

Does anyone know of any way to open a file and take a screenshot in PHP? I was asked this question myself this morning, and thought it sounded a little silly until I managed to convince myself that I'd seen it done before.

Thanks!
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: PHP File Contents Screenshot

Post by alex.barylski »

You wouldn't use PHP, no.

Apache would accept a request, PHP might then use an extension or third party service to actually open the file and render the result.

It's much better to find a third party thumbnail service IMHO. It's not a trivial task.
gregor171
Forum Newbie
Posts: 22
Joined: Thu Apr 16, 2009 5:09 pm
Location: Ljubljana, Slovenia

Re: PHP File Contents Screenshot

Post by gregor171 »

Interesting issue with no desktop on the server ;-)
Post Reply