Reply to Re: How to create a snapshot of a URL in PHP?

Your name:

Reply:


Posted by Miguel Cruz on 11/21/67 11:54

"BG Mahesh" <mahesh@mahesh.com> wrote:
> Given a URL I want the snapshot of that page as an image. Something
> like
> http://pthumbnails.alexa.com/image_server.cgi?id=yoursite.com&size=large&url=h
> ttp://google.com
>
> How do I achieve this in PHP?

You can't, at least not with PHP on its own, unless you spend months
developing an HTML renderer.

How about scripting a web browser? You can install Mozilla on the
server, and your PHP program can ask it to render the page, print it to
PostScript, and then use ImageMagick to convert that to the image format
of your choice.

miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация