One-line include in Perl CGI, Python CGI and PHP scripts automatically handles ETag generation and validation, Content-Length generation and gzip Content-Encoding —correctly.
用于CGI模式运行的Perl/Python/PHP脚本,自动处理ETag生成/校验,Content-Length生成和内容压缩。正确地。
Perl modules are not put in their own path away from the cgi, so they could theoretically be executed from the cgi-bin directory.
Perl模块并没有放到cgi之外自己的路径中,因此从理论上来说,我们只能在cgi -bin目录中执行它。
The traditional answer is just to fire up an editor, substitute cgi for inetd, and so on, and re-run perl kill_inetd.pl from the command line.
传统的答案是打开编辑器、把inetd替换成cgi等,然后从命令行再次运行perl kill_inetd.pl 。
Files should be in the cgi-bin directory. Only three nonstandard Perl modules are required; the process of installing them is presented in Listing 3 (see the modules' README files for more details).
我们只需要使用3个非标准的Perl模块;安装过程如清单3所示(更详细的信息,请参阅模块的README文件)。
The Web server and all CGI programs are written in Perl version 5, and use no non-standard Perl modules.
Web服务器和所有的CGI程序都是用Perl5编写的,没有使用任何非标准Perl模块。
Once you grant access to the underlying filesystem through your Perl script, you must ensure that the CGI script cannot gain access to files that you do not want accessible to the outside world.
一旦批准了通过perl脚本访问底层文件系统,就必须确保cgi脚本不能访问您不想让外部人员访问的文件。
It supports CGI with a built-in Perl interpreter, virtual hosting, IPv6, bandwidth management, and security features.
它支持CGI,并具有内建的Perl解释器、虚拟主机、IPv 6、带宽管理和安全性等方面的特性。
Listing 14 shows the full code, in Perl, for the CGI script that will handle all of this.
清单14给出完整的Perl cgi脚本。
Listing 14 shows the full code, in Perl, for the CGI script that will handle all of this.
清单14给出完整的Perl cgi脚本。
应用推荐