gpt4 book ai didi

html - 在我的浏览器 WAMP 中运行 CGI 脚本

转载 作者:行者123 更新时间:2023-11-28 00:13:22 25 4
gpt4 key购买 nike

我正在尝试运行基本的 cgi 脚本来生成一些 html,我只是得到原始代码,这里是通用脚本。还有什么我必须设置的吗,我在windows系统上。

 #!/usr/bin/perl

print "Content-type: text/html\n\n";
print <<HTML;
<html>
<head>
<title>A Simple Perl CGI</title>
</head>
<body>
<h1>A Simple Perl CGI</h1>
<p>Hello World</p>
</body>
HTML
exit;

最佳答案

您应该按照此处的教程进行操作:http://chromicdesign.com/2009/05/setting-up-perl-for-wampp.html

希望您最终能够正常运行。

干杯,

关于html - 在我的浏览器 WAMP 中运行 CGI 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13790562/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com