FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » web page to image
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: web page to image [message #175568 is a reply to message #175567] Sun, 09 October 2011 09:18 Go to previous messageGo to previous message
houghi is currently offline  houghi
Messages: 45
Registered: September 2011
Karma:
Member
The Natural Philosopher wrote:
> paris2venice wrote:
>> On Oct 8, 6:35 pm, The Natural Philosopher <t...@invalid.invalid>
>> wrote:
>>> bob wrote:
>>>> I want to turn a web page into a 768x1024 image using PHP. For
>>>> instance the script might loadhttp://www.example.com/and output a
>>>> 768x1024 image. Anyone know how to do this?
>>> Forget it: you need a browser to do that.
>>
>> It could be done if you can execute external Unix commands with PHP
>> which I believe you can. I'm just not advanced enough at PHP to show
>> how Unix commands can be executed to accomplish this.
>
> system() is the way, or the exec() type calls. BUT essenially you want
> to exec a full screen browser and take a screen shot.
>
>
> OR bite the bullet and start hacking e.g. Mozilla source.

Or perhaps use something like http://browsershots.org/
It all depends on wether you want to do occisional screenshots or want
to download all of the internet.

With the above URL I am sure that you should be able to script it. Not
sure if it is an option or not.


houghi
--
________________________ Open your eyes, open your mind
| proud like a god don't pretend to be blind
| trapped in yourself, break out instead
http://openSUSE.org | beat the machine that works in your head
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Editing a combobox
Next Topic: Re: Mass Twitter Account Creator (PHP)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 14:57:38 GMT 2024

Total time taken to generate the page: 0.04155 seconds