XP is just a number | |
PerlMonks |
Re: Strategies for temporary image files in CGIby Roger (Parson) |
on Nov 21, 2003 at 10:07 UTC ( [id://308841]=note: print w/replies, xml ) | Need Help?? |
Here's a sound approach - drop the .gif files. Use .png files instead. PNG files were invented as a free alternative to replace GIF files as the GIF files have proprietary LZW compression algorithm. Here's one algorithm I can think of - Step 1 - Get most recent data from DB Step 2 - Compute MD5 hash of data, or CRC32 Step 3 - Compare it with previous MD5 hash stored, together with timestamp Step 4 - If hash values differ, new data found and so on... Here's a more efficient approach I can think of, if your database supports triggers -
In Section
Seekers of Perl Wisdom
|
|