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

Reply via email to