David Kenzik wrote:
> 
>   Drew Taylor said...
>  >
>  > I currently am using
>  >
>  > my $filename = (split /\//, $r->path_info)[1];
>  >
>  > but it seems like such a hack. What is the "suggested" way to get the
>  > "A1234567.jpg" part of the above URL?
> 
> Since Apache sets path_info by scanning the physical filesystem, and since
> you are overcoming legacy calls to a script inside cgi-bin, your solution is
> probably just fine.
> 
> I had a similar issue in the past:
> 
>         http://forum.swarthmore.edu/epigone/modperl/smumbabax
> 
> As Doug mentions in that thread, $r->location might be of some assistance.
That was an interesting thread. However, I think Eric found the easiest
solution for me. This handler is very simple and if the requested file
does not pass -e, it just returns NOT_FOUND. So I guess I'll stick with
my original thinking for now.

Thanks.

-- 
Drew Taylor
Vialogix Communications, Inc.
501 N. College Street
Charlotte, NC 28202
704 370 0550
http://www.vialogix.com/

Reply via email to