尊敬されるppl..。
openSUSE 12.2を使用していて、Apacheサーバーが正常に実行されています...
以下を含むindex.htmlをコピーしました:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><title>Program 7b</title></head>
<body>
<form method="POST" action="http://localhost/cgi-bin/7b.pl">
Please Enter the Command :
<input type="text" name="command" id="command" />
<input type="submit" value="Submit" />
</form>
</body>
</html>
そして、perlファイルは次のとおりです。
#!/usr/bin/perl
print "Content-type:text/html\n\n";
use CGI
$a = new CGI;
$comm = $a->param("command");
print "The Output of the entered command is:<br />";
system($comm);
cgi-binディレクトリ内の両方のファイル
しかし、私はエラーを受け取ります:
スクリプトヘッダーの早期終了任意のブラウザでlocalhost/cgi-bin/index.htmlを実行すると...。
私はapache構成でperlファイルの実行を設定しました...
親切に問題を手伝ってください...
よろしく-SkyKOG