我正在尝试在我的 wamp 设置中执行 CGI。我已经在网上搜索了没有aviel。
cgi.test - 位于 D:\Programs\wamp\bin\apache\apache2.4.2\cgi-bin
#!D:/Programs/wamp/bin/php/php5.4.3/php-cgi.exe
phpinfo();
索引.html
<form id="upload-form" action="/cgi-bin/test.cgi" method="post" enctype="multipart/form-data">
</form>
httpd.conf
<Directory "cgi-bin">
AllowOverride All
Options Indexes FollowSymLinks Includes ExecCGI
Order Allow, Deny
Allow from All
</Directory>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "cgi-bin/"
</IfModule>
<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddHandler cgi-script .cgi
</IfModule>