in reply to DECLINED from mod_perl doesn't work quite like I expect...

The SetHandler directive basically overrides PHP's use of AddHandler. The only "handler" mod_perl will return you back to is "default-handler" - i.e. deliver the file as-is.

A work around is to either use AddHandler perl-script .pl (or whatever extension you choose), or put all your PHP scripts elsewhere, or use <Files> to map your mod_perl bits, or use a PerlTypeHandler, as documented in the book (see the beginning of Chapter 4, or Chapter 8's "Reimplementing mod_mime..." section), to automatically re-map to PHP.

Hope that helps.

Replies are listed 'Best First'.
Re: Re: DECLINED from mod_perl doesn't work quite like I expect...
by maverick (Curate) on Feb 27, 2002 at 17:32 UTC
    The files technique will work for php, but the one that really got me was the ErrorDocument directive not working.

    I guess I really wanted declined to work a little differently.

    Thanks...

    /\/\averick
    perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"