Page 1 of 1

html table to display as a png

Posted: Sun Feb 25, 2007 7:08 am
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.

Posted: Sun Feb 25, 2007 7:58 am
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

Posted: Sun Feb 25, 2007 8:30 am
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?

Posted: Sun Feb 25, 2007 9:13 am
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.