[thelist] Re: Thumbnail display CGI

Kevin Martin evolt at brasscannon.net
Tue Jul 17 09:58:01 CDT 2001


 "Michele Foster" wrote:
> Do you have ASP or another server-side language available to you?

Perl CGI and PHP -- I'm running Apache on Linux.  Interesting to hear
how the rest of the world might go about it, though. :-)

"Keith" gave a client side Javascript solution, which raises some
interesting possibilities, and a lovely little Perl CGI that is EXACTLY 
what I was looking for.  We have a winner!  Thank you!  (I see another
message or two further down in the digest, and will certainly look at
those as well.)

> #!/usr/bin/perl
> @params=split(/=/,$ENV{'QUERY_STRING'});
> print "Content-type: text/html\n\n";
> print qq~<html>
> <body bgcolor=$params[1] background=$params[2].jpg>
> <img src=$params[0].jpg>
> </body></html>~;

-- 
Kevin 'digger' Martin <evolt at brasscannon.net>




More information about the thelist mailing list