【问题标题】:Using perl to learn HTML forms [duplicate]使用 perl 学习 HTML 表单 [重复]
【发布时间】:2015-02-19 15:30:27
【问题描述】:
我跟着我的书,我 -
1 - 安装的深渊网络服务器,个人版。
2 - 将本书的 echo.pl 文件复制到网络服务器的 htdocs 文件夹中。重新启动了
网络服务器。
3 - 安装了 Active Perl。 (其实早就有了,不知道是谁放的)
当我访问链接 - http://localhost/echo.pl 时,我会看到 perl 文件(Internet Explorer)或下载 perl 文件(chrome)。我希望这个脚本能够处理来自我的 HTML 表单的所有请求。我该怎么做?
谢谢。
【问题讨论】:
标签:
html
perl
activeperl
abyss
【解决方案1】:
我很幸运。我不知道该怎么做。我在他们的网站上闲逛,想了解一下他们。我想知道当有 apache 时谁会使用这个不起眼的 Web 服务器。幸运的是,我看到了“帮助和支持”部分。在那里,我看到了脚本语言支持,并且列表中提到了 perl。我点击了链接并获得了我的 Windows 系统的说明。这是 - http://www.aprelium.com/abyssws/perl.html
Download and install Perl
Download ActivePerl from http://www.activestate.com/Products/ActivePerl and install it.
Declare the interpreter
Open Abyss Web Server's console. In the Hosts table, press Configure in the row corresponding to the host to which you want to add Perl support.
If there is no Hosts table in the main screen of your console, this means that you are using an old version of Abyss Web Server. Please upgrade to the latest version before proceeding. Upgrading is free, straightforward, and preserves your current server configuration. Click here to download the latest version.
Select Scripting Parameters.
Check Enable Scripts Execution.
Press Add in the Interpreters table.
Set Interface to CGI/ISAPI.
Note that if you do not find an Interface field, you can ignore this step and continue with the following instructions.
In the Interpreter field, press Browse..., go to the directory where you have installed Perl, click on the bin subdirectory, and click on perl.exe.
Check Use the associated extensions to automatically update the Script Paths.
Press Add in the Associated Extensions table.
Enter pl in the Extension field and press OK.
Press again Add in the Associated Extensions table.
Enter cgi in the Extension field and press OK.
Press OK
Press OK in the Scripting Parameters dialog.
Declare new index files
Select Index Files.
Press Add in the Index Files table.
Enter index.pl in the File Name field and press OK.
Press again Add in the Index Files table.
Enter index.cgi in the File Name field and press OK.
Apply the modifications
Press Restart to restart the server.