in reply to How to display an image on a webpage with minimal code

This works only if you are using extension-based MIME detection, not path-based MIME detection (like ScriptAlias), because the .jpg files would be interpreted as CGI scripts instead.

Also, relative "Location:" headers are strongly frowned upon. If a current browser gets it right, it's because it's error-correcting for you.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on Re: How to quickly display an image on a webpage via perl

Replies are listed 'Best First'.
Re^2: How to quickly display an image on a webpage via perl
by Melly (Chaplain) on Nov 08, 2006 at 09:31 UTC

    Ah - many thanks. Err, any suggestion of a better, quick, way to do it? (pretty please)

    Tom Melly, tom@tomandlu.co.uk