html table to display as a png

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fulltlt
Forum Newbie
Posts: 2
Joined: Sun Feb 25, 2007 6:51 am

html table to display as a png

Post by fulltlt »

Is there a way to convert inline in php a large table generated from a mysql database to display as a png instead of as an html table?

I would like to hinder people from cutting and pasted the tables data easily.
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post by dude81 »

For this
Is there a way to convert inline in php a large table generated from a mysql database to display as a png instead of as an html table?
Hopefully these function should help you. I'vent tried it either. But PHP manual says its possible.
First make your table to a string and then use the following function
imagestring
fulltlt
Forum Newbie
Posts: 2
Joined: Sun Feb 25, 2007 6:51 am

Post by fulltlt »

I could see how imagestring could work for something like a web page counter but not sure how it would work for a large table.

Does anyone have an example?
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

You're looking for something (command line tool) that can convert an HTML page to its image equivalent.
If you come across a free version of this, pl do share here.

Another option : Webshot.
Post Reply