Re: [PHP] html image
On Thu, March 24, 2005 10:48 am, delos said: i would like to produce a script that can make an image (screenshot) based only on the site url. so that i enter an URL and php makes the picture. can such a thing be done by php? if not, maybe by some other language? I don't THINK anybody mentioned the GD folks' program that does this called, e, webthumb??? You'd have to http://php.net/exec it And your server would have to have X and a browser installed, which is not super common on web servers. Or you might be able to hack something up on a home machine to screenshot the sites you want in a cron job and upload the images... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] html image
On Thu, 24 Mar 2005 20:48:50 +0200, delos [EMAIL PROTECTED] wrote: i would like to produce a script that can make an image (screenshot) based only on the site url. so that i enter an URL and php makes the picture. can such a thing be done by php? if not, maybe by some other language? You would need a program that would take the HTML code that you receive and then know how to format it. In other words, a web browser. I know that this is possible because as far back as three years ago I was getting spam that included a screenshot of my site. I thought it was rather cool- the screenshot showed the site optimized for a 1024- width screen and I had at that point only ever seen my own site on a 800*600 15 inch monitor. You would probably need to combine about 3 tools to do this: a browser, a screen shot utility, and THEN php. php cannot transform the html code into a 'webpage'. Unless, hehehe, you want to write a browser in php. Dotan Cohen http://English-Lyrics.com/ http://Song-Lyriks.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] html image
check out http://www.whois.sc they do exactley what you are talking about. i don't think you can make PHP do this.. there maybe someway to do it with imagemagik but i am not even sure about that also... here is a free ware program that does it.. but you have to do it manually http://www.snapfiles.com/get/web2pic.html good luck! let us know what you find! Joe On Fri, 25 Mar 2005 19:47:43 +0200, Dotan Cohen [EMAIL PROTECTED] wrote: On Thu, 24 Mar 2005 20:48:50 +0200, delos [EMAIL PROTECTED] wrote: i would like to produce a script that can make an image (screenshot) based only on the site url. so that i enter an URL and php makes the picture. can such a thing be done by php? if not, maybe by some other language? You would need a program that would take the HTML code that you receive and then know how to format it. In other words, a web browser. I know that this is possible because as far back as three years ago I was getting spam that included a screenshot of my site. I thought it was rather cool- the screenshot showed the site optimized for a 1024- width screen and I had at that point only ever seen my own site on a 800*600 15 inch monitor. You would probably need to combine about 3 tools to do this: a browser, a screen shot utility, and THEN php. php cannot transform the html code into a 'webpage'. Unless, hehehe, you want to write a browser in php. Dotan Cohen http://English-Lyrics.com/ http://Song-Lyriks.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] html image
i would like to produce a script that can make an image (screenshot) based only on the site url. so that i enter an URL and php makes the picture. can such a thing be done by php? if not, maybe by some other language? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] html image
I have done this sort of thing with PDF's but I have never done it with images. It has also always been a web page that is on my site -- I get the impression that you want to read in someone else's url and do this. I would start off by looking at the ob_start and other related functions. Once you have the url in a variable I would think you can do whatever you want with it. ?php /* Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code */ ? From: delos [EMAIL PROTECTED] Date: Thu, 24 Mar 2005 20:48:50 +0200 To: php-general@lists.php.net Subject: [PHP] html image i would like to produce a script that can make an image (screenshot) based only on the site url. so that i enter an URL and php makes the picture. can such a thing be done by php? if not, maybe by some other language? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] html image
Hello delos, Thursday, March 24, 2005, 11:48:50 AM, you wrote: d i would like to produce a script that can make an image d (screenshot) based only on the site url. so that i enter an URL d and php makes the picture. Hmmm. It can be done. See http://www.whois.sc/www.php.net But I'm just not sure quite how. I can think of a lot of scenarios, but I don't know if I'm even in the right ballpark. You might be able to e-mail those guys and ask how they do it. You might get lucky. If you figure it out, let us know though. It's kinda neat. -- Leif (TB lists moderator and fellow end user). Using The Bat! 3.0.9.9 Return (pre-beta) under Windows XP 5.1 Build 2600 Service Pack 2 on a Pentium 4 2GHz with 512MB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php