May 13, 2009, 9:23 AM
Post #1 of 2
I understand that one can use mod_perl with Apache to run Perl scripts in a web environment much faster than regular CGI where you have to load the Perl interpreter eachtime the script gets called. But I also understand that this can cause some name collisions between modules or functions.
mod_perl collisions versus PHP
I am more used to using PHP and I'm wondering is there any equivalent in PHP? When I develop PHP scripts to run under Apache, I just place my whatever.php files in a directory under the fileroot for the web server, then just access the page through my browser and it runs. Does this mean that my PHP script is running as a CGI script and the PHP interpreter is being loaded each time? Or, does PHP have something like mod_perl (mod_php?) built in? Are there similar problems with namespace collisions under PHP?
This is sort of a PHP question as much as Perl question, but I'm hoping someone out there knows nboth environments well.