Re: Create a screenshot of a website

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrea Giammarchi wrote:

Thanks,
I checked the faq of their website. They say that I must have an an X session. I don't host myself my website. I want something that I can use only by using cpanel. What i want basically is allow the user to enter the url of a website. And the script must give him the image as output.

Here we are ... you see Rob? :-)

What about an iframe if this is a user website preview?

If you have khtml2png2 on your system then using PHP you can do the following:

<?php

    $command =
        'khtml2png2'
       .' -b'
       .' -w 1024'
       .' --get-body'
       .' "http://www.interjinn.com";'
       .' interjinn.png';

    exec( $command );

?>

I fail to see how this is not a PHP solution. This should have been obvious when I said PHP makes an excellent glue/wrapper language.

Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux