IndigoStar has a product called Microweb that lets you do just what you're asking. You can
According to the docs, it'll let you use Perl and PHP (among others) for cgis.
After a little more research, I found out that Microweb is $299 a copy. Yowch! I don't know how disabled the shareware version is, but it may be okay.