词条 | Mod perl |
释义 |
| name = mod_perl | developer = Apache Software Foundation | latest release version = 2.0.10 | latest release date = {{release date|2016|10|27}}[1] | platform = Perl | genre = Perl module for Apache HTTP server | license = Apache License 2.0 | website = {{URL|//perl.apache.org/}} }} mod_perl is an optional module for the Apache HTTP server. It embeds a Perl interpreter into the Apache server. In addition to allowing Apache modules to be written in the Perl programming language, it allows the Apache web server to be dynamically configured by Perl programs. However, its most common use is so that dynamic content produced by Perl scripts can be served in response to incoming requests, without the significant overhead of re-launching the Perl interpreter for each request. Slash, which runs the web site Slashdot, is written using mod_perl.[2] Early versions of PHP were implemented in Perl using mod_perl.[3]mod_perl can emulate a Common Gateway Interface (CGI) environment, so that existing Perl CGI scripts can benefit from the performance boost without having to be re-written. Unlike CGI (and most other web application environments), mod_perl provides complete access to the Apache API, allowing programmers to write handlers for all phases in the Apache request cycle, manipulate Apache's internal tables and state mechanisms, share data between Apache processes or threads, alter or extend the Apache configuration file parser, and add Perl code to the configuration file itself, among other things. See also{{Portal|Free and open-source software}}
References1. ^{{cite web|url=https://perl.apache.org/download/index.html|title=Download|accessdate=14 June 2017}} 2. ^{{cite web|url=http://slashcode.com/www.slashcode.com/docs/INSTALL.html|title=Slash installation|website=slashcode.com|deadurl=yes|archiveurl=https://web.archive.org/web/20150504133416/http://slashcode.com/www.slashcode.com/docs/INSTALL.html|archivedate=2015-05-04|df=}} 3. ^{{cite web|url=http://www.theperlreview.com/articles/php.html|title=Paying Homage to Perl (PHP)|website=theperlreview.com|date=February 2003|deadurl=yes|archiveurl=https://web.archive.org/web/20130625070202/http://www.theperlreview.com/articles/php.html|archivedate=2013-06-25|df=}} External links
4 : Apache httpd modules|Perl|Articles with underscores in the title|Cross-platform software |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。