Page 1 of 1

PHP File Contents Screenshot

Posted: Tue Jul 14, 2009 11:32 am
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!

Re: PHP File Contents Screenshot

Posted: Tue Jul 14, 2009 12:19 pm
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.

Re: PHP File Contents Screenshot

Posted: Tue Jul 14, 2009 4:38 pm
by gregor171
Interesting issue with no desktop on the server ;-)