From: "Lyle Brooks" <[EMAIL PROTECTED]>
To: "Tim Noll" <[EMAIL PROTECTED]>
Cc: "Lyle Brooks" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 5:54 PM
Subject: Re: image corruption
>
> Ok, a couple of things
gt;
>
> - Original Message -
> From: "Lyle Brooks" <[EMAIL PROTECTED]>
> To: "Tim Noll" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 05, 2002 4:42 PM
> Subject: Re: image corruption
>
>
> > When
EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 4:42 PM
Subject: Re: image corruption
> When I try this example, I find that this line
>
> > my $file = $r->path_info;
>
> will set $file to "/index.html" when I request the URL /tt/index
Another obvious option would be to put your images in a different directory,
e.g. /images rather than /tt/images.
Or, add another directive for /tt/images, and set the handler to
the default handler.
-Dave
When I try this example, I find that this line
> my $file = $r->path_info;
will set $file to "/index.html" when I request the URL /tt/index.html
which leads to an error message that says,
reason: file error - /index.html: absolute paths are not allowed (set ABSOLUTE option)
You may want to c
Tim,
I don't know a lot about mod_perl, but I would guess you may want to look
at
invoking a subrequest via lookup_file or lookup_uri. E.g.
my $ct = $r->lookup_uri('images/logo.tif')->content_type;
regards
John
John Kelly
IBM Hursley
"Tim Noll" <[EMAIL PROTECTED]>
05/02/2002 12:21