On Wed, Apr 11, 2001 at 08:22:38PM -0700, Randal L. Schwartz wrote:
> 
> In an .htaccess, I place:
> 
>     Options +ExecCGI
>     PerlFixupHandler "sub { -f $_[0]->filename and -x _ and 
>$_[0]->handler(q{cgi-script}) }"
> 
> Now any executable file in this directory (or below) is processed with
> mod_cgi.  Any non-executable file is processed with whatever the MIME
> engine came up with before.
> 
> OK, too cool to not pass on. :)

Except that I think you'll find that string is being recompiled for
each request - slow and leaks memory. The principle is good though :)

Tim.

Reply via email to