Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Re: Caching images from RDBMS

by giulienk (Curate)
on Aug 08, 2002 at 10:54 UTC ( #188553=note: print w/ replies, xml ) Need Help??

in reply to Re: Caching images from RDBMS
in thread Caching images from RDBMS

Yeah, i always use placeholders. In this particular case i didn't cause the regexp is already purging everything that's undesired.

What i didn't explain in my original post is the image name is unique and changes with date. Here is the sub that generates the URL

sub image_path { my ($id, $image) = @_; my ($mydate) = $dbh->selectrow_array( "SELECT time FROM offerte WHERE id=$id" ); return "/images.cgi/${id}_${image}_${mydate}.jpg"; }

As you can see i already have a time field :).

Thanks for the suggestions.


Comment on Re: Re: Caching images from RDBMS
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2015-11-30 01:06 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (755 votes), past polls