Hi,
No, no, I can assure you, I'm not interested in atacking no one.
I told in the first post, I want to be able to generate thumbnails for a given URL. And I want this thing to be put on my server, so I can call it from my site. I know about the free/paid services like browsershots and others, and they are great, but i need a fast service and simple service just for my site.
So, I found some resources and articles (i don't know if i'm allowed to post an external link here) to an addon for mozilla firefox that can be installed on linux too and called from the command line. And this command (/usr/lib/firefox-3.0.7/firefox -savepng
http://www.site-name.com/ --display=:0.0) starts firefox in the first display, loads the url provided, takes a snapshot of the whole page, saves it in the folder where firefox is configured to save the downloads and then closes the browser.
I have tested this from the command line directly on the server and it worked and from the command shell application in webmin administration panel and it works too. Now, all i need is to make it work from php (or perl, cgi, if needed, but i need to intergrate it eventualy in php.
I've read about shell_exec, exec, pastrhough, and so, but no luck.
I've tried giving the php script other users or group, I even gave firefox on my server the user apache, nothing happened, i can't make the above command to work from php.
Please help.