- PHP is a language
- mod_perl exposes the Apache API and is not a language
- PHP is for building applications
- mod_perl is the engine that drives applications, but it offers no help in the application building process.
- PHP runs under IIS and Apache
- mod_perl runs only under Apache
- PHP has a single voice documentation that covers all aspects of the language.
- mod_perl has multiple voice documentation that covers all all aspects of the system.
- PHP applications don't require modification to the httpd.conf (PHP requires the addition of the AddHandler for .php files however)
- Application frame works for mod_perl (Apache::ASP, Embperl, Mason etc.) require modification of the httpd.conf
These are just some of the issues surrounding acceptance of mod_perl over PHP. Combining mod_perl with Safe doesn't eliminate the learning curve that mod_perl has, not to mention the difficulty in picking the best templating/framework system to use in conjunction with it. mod_perl offers more flexibility, but at the cost of increasing complexity. In environments where the skill level of the implementor is unknown, such as shared hosting there are far too many support and configuration issues to make mod_perl parctical for most business models. Companies that offer mod_perl hosting specialize in it.
So while I agree that Safe might help, I think we have bigger fish to fry.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||