FyberOptic wrote:
I'm also curious why Perl can't be more like PHP in the respect of just having a module loaded to prevent having to load the interpreter everytime, since mod_perl is the only thing I know of which comes close to that, except it goes farther and keeps the script in memory as well. Wouldn't one still see a performance benefit if Perl was simply more integrated with Apache?
mod_perl is as integrated with Apache as possible, more so than PHP, as this quote from
What is mod_perl? explains:
Quote:
mod_perl is more than a scripting language. It is a unification of Apache with Perl, meaning that much of Apache can be controlled from Perl (including its configuration - meaning that configuration can be dynamic!). Although Perl can be embedded within HTML documents (through ePerl, mod_perl extended Server Sides Includes or other methods), mod_perl is usually used to supply the functionality that allows Apache extension modules to be written in Perl.
I don't think you can write Apache modules or httpd.conf in PHP, but if you don't need that kind of power it might fill your needs. Here are a few URLs you might find helpful:
Practical mod_perl
The mod_perl Developer's Cookbook
mod_perl 1.0 User Guide
Writing Apache Modules with Perl and C
More ways to do it:
http://www.fastcgi.com/
http://sourceforge.net/projects/speedycgi/