|
というわけで、まずは、単純なものを動かしてみましょう。 動作例
ここを押すと、実行結果がわかります。↓ ソースコード
#!/usr/local/bin/perl
use CGI;
use strict;
my $cgi = new CGI;
print $cgi->header, $cgi->start_html('Hello World');
print "<p>Hello World!</p>\n";
print $cgi->end_html;
手順
※ 以下のようにして、置きます。 % ftp -p ftp.isweb.infoseek.co.jp ... Name (ftp.isweb.infoseek.co.jp:usuda): あなたのユーザID 331 Password required for usutest. Password: (パスワードを入力) 230 User usutest logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> cd cgi-bin 250 CWD command successful. ftp> put hello.cgi local: hello.cgi remote: hello.cgi 227 Entering Passive Mode. 150 Opening BINARY mode data connection for hello.cgi 226 Transfer complete. 140 bytes sent in 5.5e-05 secs (2.5e+03 Kbytes/sec) ftp> chmod 755 hello.cgi 200 SITE CHMOD command successful ftp> quit 221 Goodbye. |
▼ 個人的宣伝
|