943,755 Members | Top Members by Rank

Ad:
Jan 10th, 2009
0

convert data list to image

Expand Post »
I have a customer who pulls data from a database, they want to be able to display the info as a pic so the end user can not copy and paste the data in an excel spreadsheet any idea of what I could use to do this
Reputation Points: 12
Solved Threads: 36
Posting Pro in Training
freshfitz is offline Offline
436 posts
since Sep 2008
Jan 10th, 2009
0

Re: convert data list to image

Serverside php asp perl using the same techniques used to generate captcha scripts
in php
php Syntax (Toggle Plain Text)
  1. header ("Content-type: image/png");
  2. $im = @imagecreatetruecolor(500, 300)
  3. or die("Cannot Initialize new GD image stream");
  4. $text_color = imagecolorallocate($im, 233, 14, 91);
  5. imagestring($im, 3, 5, 5, "A Simple Text String", $text_color);
  6. imagestring($im, 3, 5, 45, "A Second Text String", $text_color);
  7. imagestring($im, 3, 5, 85, "A Third Text String", $text_color);
  8. imagepng($im);
  9. imagedestroy($im);
The image strings can be data from the table output, the image can be sized to suit the number of lines of text output by adjusting the definitions
$im = @imagecreatetruecolor(500, 40*$lines)
The image generation is simply included as <img src='imagegenerator.php'> in a page, image generator can be set to parse parameters ?1=text1@2=text2, or can be the actual dbase processor
Last edited by almostbob; Jan 10th, 2009 at 6:43 pm.
Reputation Points: 562
Solved Threads: 368
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
Jan 16th, 2009
0

Re: convert data list to image

They can't prevent such a use of the data. I have some simple software that extracts text from images. It could easily reconstruct the information. So can anyone who can type.

Why are you so afraid that people will use the information? That's what the Internet is for.

I believe that intellectual property will become a thing of the past within ten years. The internet will make it totally impossible to maintain.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
Jan 16th, 2009
0

Re: convert data list to image

Making it images makes it harder for people to extract, so fewer people will do it, so there is some benefit.

If the goal is to reduce automated screen scraping, they have at least increased the amount of effort required.

Your last comment about intellectual property being a thing of the past, should probaly have been in some social discussion forum, but just in passing, if information has no value, why would anyone spend money to acquire it in the first place?
Reputation Points: 344
Solved Threads: 116
Practically a Master Poster
Murtan is offline Offline
670 posts
since May 2008
Jan 19th, 2009
0

Re: convert data list to image

The Internet will remove all of the value.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
Jan 19th, 2009
0

Re: convert data list to image

Click to Expand / Collapse  Quote originally posted by MidiMagic ...
The Internet will remove all of the value.
So I if I have some IP that I paid for and want to preserve the value for I should never put it on the internet at all?
Reputation Points: 344
Solved Threads: 116
Practically a Master Poster
Murtan is offline Offline
670 posts
since May 2008
Jan 19th, 2009
0

Re: convert data list to image

Sort of.

The availability of information for free over the Internet will eventually remove all value from anything that can be posted on the Internet. You would not need to pay for it.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
Jan 20th, 2009
0

Re: convert data list to image

It's really difficult to do this type of job but give me some time.
Reputation Points: 10
Solved Threads: 2
Newbie Poster
Joyce Sullivan is offline Offline
13 posts
since Jan 2009
Jan 20th, 2009
0

Re: convert data list to image

thanks that php code worked
Reputation Points: 12
Solved Threads: 36
Posting Pro in Training
freshfitz is offline Offline
436 posts
since Sep 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Can i preload a powerpoint ?
Next Thread in HTML and CSS Forum Timeline: problems with css in worpress





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC