Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
The stupid question is the question not asked
 
PerlMonks  

Re: Compressing a string, but leaving it as a string

by TedPride (Priest)
on Mar 12, 2005 at 04:14 UTC ( #438873=note: print w/ replies, xml ) Need Help??


in reply to Compressing a string, but leaving it as a string

MD5 hash your data. The data can be as long as you want. Then store the data as a database record using the MD5 hash as key. The user can then access a URL like this:

index.pl?eJzTz9AvyMku0jfWLy8v1wMx9fKL0vWLiouBHACWdQpk
...and your script will search for the database record with that key and return the data in its original form.

This was already said above, but I thought I'd explain in more detail.


Comment on Re: Compressing a string, but leaving it as a string
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://438873]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2013-06-18 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many continents have you visited?









    Results (595 votes), past polls