Forum Moderators: coopster
I've got an interesting problem and I don't know how to go about doing this.
The SERPS on some search engines has the URL, description and a snapshot of the home page as an image, now I think thats done on the fly.
Basically I am trying to do the same, where by you can enter a URL and you get a snapshot of the homepage as an image.
Can this be done using PHP?
Many Thanks
Woldie :)
A thumbshot service will give you a standard way of determining the url of the thumbshot based on the homepage domain. You can use PHP to check to see if this image exists or not before you throw the thumbshot url into your own file or database, or copy the thumbshot (if this is permissible ).
Looks like the best solution to me: the Linux mozilla (or other browser) screenshot could additionally be piped through imagemagick, and uploaded to your webserver. I imagine that Alexa et al, use something similar, hence the "coming soon" - waiting for the batch process to refresh all the images.
I see what you mean, shame PHP hasn't that got functionality as yet, but you never know.
Do you know of any good examples out there? I'm on Apache so perhaps there is some Apache commands which can do this?
I stumbled across this site, [babysimon.co.uk...]
Thanks
:o)
In php, you'll probably want to use
system() [be.php.net]
I have a server which I work on anyway, just need to install the software on the server.
I did see this on another thread on Webmasterworld.
Cheers.