homepage Welcome to WebmasterWorld Guest from 54.226.0.225
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
php image capture
capturing an image from a php page
Vael27




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

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




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

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




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

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




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

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




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

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




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved