Re: image corruption

2002-02-06 Thread Tim Noll
Message - 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... 1) You want to move the $r-send_http_header; call up before

image corruption

2002-02-05 Thread Tim Noll
I'm attempting to use mod_perl and Template Toolkit to serve up templates. However, I'm having a problem with the images in those templates: They're passing through the content handler, and thus getting corrupted. My first thought was to return DECLINED from the content handler if the request is

Re: image corruption

2002-02-05 Thread John Kelly
To: [EMAIL PROTECTED] cc: Subject:image corruption I'm attempting to use mod_perl and Template Toolkit to serve up templates. However, I'm having a problem with the images in those templates: They're passing through the content handler, and thus getting corrupted

Re: image corruption

2002-02-05 Thread Lyle Brooks
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 clip

Re: image corruption

2002-02-05 Thread David Ranney
Another obvious option would be to put your images in a different directory, e.g. /images rather than /tt/images. Or, add another Location directive for /tt/images, and set the handler to the default handler. -Dave

Re: image corruption

2002-02-05 Thread Tim Noll
: 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.html which leads to an error message that says, reason: file error - /index.html

Re: image corruption

2002-02-05 Thread 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 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