perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mer...@stonehenge.com (Randal L. Schwartz)
Subject Re: Using a 404 ErrorDocument to serve content
Date Mon, 06 May 2002 17:34:41 GMT
>>>>> "Ken" == Ken Williams <kenw@ee.usyd.edu.au> writes:

Ken> I was thinking of writing yet-another-photo-album-server, and I had
Ken> the idea that I'd write a handler to serve resized versions of JPEGs
Ken> (very original, I know ;-).  The idea is that I'd put a bunch of JPEGs
Ken> on the server at locations like foo/123.jpg , and then if a request
Ken> came for foo/123-medium.jpg , I'd catch that with a 404 ErrorDocument
Ken> and generate the resized image using Imager.  If I wanted to, I could
Ken> also create the resized image on disk, so it wouldn't need to be
Ken> generated next time.

As usual, Been there, Did That For A Column.

1) Visit any page on the newly redesigned www.stonehenge.com.
2) Type "404 handler" into the bottom "search this site with google" box.
3) Check out the hits... should be the first or second one.

After 160 columns, I'm starting to really wonder what there is LEFT to
cover. :)
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Mime
View raw message