Welcome to WebmasterWorld Guest from 54.146.239.96

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

php image capture

capturing an image from a php page

     

Vael27

6:24 pm on Dec 1, 2002 (gmt 0)

10+ Year Member



What I'm wanting to do is to take a snapshot of one of my php pages using server side script, and I've been searching the php manual with no luck.

I've found plenty of information about resizing/manipulating images with php, but nothing that I've seen about actually creating one from a php (or html) page.

Is this possible, and does anyone have an idea how to do this if it is?

Thanks.

jatar_k

7:07 pm on Dec 1, 2002 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com] Vael27

I really have no idea, I looked through the Image Functions [php.net] but couldn't really think of anything.

So, you want a script that will get the client side output of a scripted page and screenshot it? Want to share a little more about why?

That way maybe we could think up alternatives.

lorax

7:26 pm on Dec 1, 2002 (gmt 0)

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld!

By snapshot do you mean a visual snapshot as in what a browser sees - what I would see if I called the page or do you mean the code that is handed to a browser?

Vael27

8:04 pm on Dec 1, 2002 (gmt 0)

10+ Year Member



Thanks for the welcome. I hope this screwy sounding request doesn't brand me forever ;) I'm relatively new to php.

Yes I mean the client side, after the php has been parsed.

But, what I'm trying to do is this: I have an rss feed (symantec virus alerts) on my site. I'm trying to link this feed to my web forum (phpBB), but it posts each virus as a separate post. I don't want 10 new posts with one virus each, so what I was hoping to do is create a snapshot of the updated rss feed, and then simply post the image in the forum. With a daily snapshot, it would update itself without me having to do anything else.

There has to be an easier way to do this. It sounds screwy even as I try to describe it. I think I may have to go into the rss parser file on the web board and change the code.

jatar_k

8:28 pm on Dec 1, 2002 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I have a general understanding, but I may not be 100%.

What about having a way that each day they all go into the same thread? (again I may be way off). Then you have a daily thread that has all of the alerts from that day?

andreasfriedrich

10:33 pm on Dec 1, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I believe there is a mozilla project that is using the gecko rendering engine to produce screen shots like that from various languages. Last time I checked it was all very alpha level code.

However, I donīt think you should use a screen shot to solve your problem. Parsing the RSS feed and adding it to the forum will be far better.

Andreas