正面がシティレラ城の場所を午後5時から確保しました。
殆ど雑音なしでお楽しみください。
【HTMLファイル】<html><head><title>ファイルアップロード</title></head><body>【gawk プログラム】
<!-- fromの属性に enctype="multipart/form-data" を付けるのを忘れずに! //--><form method="post" action="/cgi-bin/gawk.cgi" enctype="multipart/form-data"><input type=text name="path"><input type="file" name="file1" size="60" /><input type="file" name="file2" size="60" /><input type="submit" name="submit" value="送信" /></form></body></html>
【受け取る gawk】#! /usr/bin/gawk -fBEGIN{print "Content-Type: text/plain"print ""print "This is test"print 1,ENVIRON["AUTH_TYPE"]print 2,ENVIRON["CONTENT_LENGTH"]print 3,ENVIRON["CONTENT_TYPE"]print 4,ENVIRON["GATEWAY_INTERFACE"]print 5,ENVIRON["PATH_INFO"]print 6,ENVIRON["PATH_TRANSLATED"]print 7,ENVIRON["QUERY_STRING"]print 8,ENVIRON["REMOTE_ADDR"]print 9,ENVIRON["REMOTE_HOST"]print 10,ENVIRON["REMOTE_IDENT"]print 11,ENVIRON["REMOTE_USER"]print 12,ENVIRON["REQUEST_METHOD"]print 13,ENVIRON["SCRIPT_NAME"]print 14,ENVIRON["SERVER_NAME"]print 15,ENVIRON["SERVER_PORT"]print 16,ENVIRON["SERVER_PROTOCOL"]print 17,ENVIRON["SERVER_SOFTWARE"]system("rm /var/www/win/up/myfile")}{print $0 >> "/var/www/win/up/myfile"}
【関連する環境変数】
Content Type の環境変数
multipart/form-data; boundary=----WebKitFormBoundaryMU4Bxx8HoqSOyTQG
実際のデータ
【標準出力か取得できる】------WebKitFormBoundaryMU4Bxx8HoqSOyTQGContent-Disposition: form-data; name="path"myPath------WebKitFormBoundaryMU4Bxx8HoqSOyTQGContent-Disposition: form-data; name="file1"; filename="README"Content-Type: application/octet-stream<テキストデータ;省略>------WebKitFormBoundaryMU4Bxx8HoqSOyTQGContent-Disposition: form-data; name="file2"; filename="google日本語.png"Content-Type: image/png?PNG<PNG画像データ;省略>------WebKitFormBoundaryMU4Bxx8HoqSOyTQGContent-Disposition: form-data; name="submit"送信------WebKitFormBoundaryMU4Bxx8HoqSOyTQG--
player | LV | 最終ログイン | 時空石 | CP | 修練の鍵 | バブイルの鍵 | バブイルポイント |
メグレス | 64 | 5/20/2015 | 150 | 10000 | 845 | 882 | 9633 |
しゅん | 63 | 5/20/2015 | 160 | 10000 | |||
パンケーキ | 59 | 5/20/2015 | 10000 | ||||
GTD | 48 | 5/20/2015 | 210 | 7133 | 698 | 811 | 6320 |
フェイス | 32 | 5/20/2015 | 130 | 5048 | 848 | 669 | 288 |
ShunGm | 30 | 5/20/2015 | 3902 | 727 | 364 | ||
SHUCHE | 34 | 5/20/2015 | 0 | 7251 | 454 | 708 | 25 |
ChenLu | 31 | 5/20/2015 | 130 | 4803 | 737 | 655 | 183 |
Darren | 18 | 5/20/2015 | 150 | 936 | 45 | 35 | 0 |
ligin | 7 | 5/20/2015 | 200 | 200 | 30 | 0 | 0 |
softwa | 7 | 5/20/2015 | 0 | 190 | 30 | 0 | 0 |
chluLi | 7 | 5/20/2015 | 50 | 50 | 30 | 30 | 0 |
VIDEOS | 4 | 5/20/2015 | 100 | 170 | 0 | 0 | 0 |
<html> | |
<head> | |
<style> | |
body { | |
background: rgb(204,204,204); | |
} | |
paper[size="A4"] { | |
background: white; | |
width: 21cm; | |
height: 29.7cm; | |
display: block; | |
margin: 0 auto; | |
padding: 1cm; | |
margin-bottom: 0.5cm; | |
box-shadow: 0 0 0.5cm rgba(0,0,0,0.5); | |
} | |
@media print { | |
body, paper[size="A4"] { | |
margin: 0; | |
box-shadow: 0; | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<paper size="A4"> | |
<center>A4版網頁範例<br> | |
A4版ホームページサンプル</center> | |
</paper> | |
<paper size="A4"></paper> | |
<paper size="A4"></paper> | |
<paper size="A4"></paper> | |
<paper size="A4"></paper> | |
</body> | |
</html> 【20150221追記】 左側に広告のサイトバーを追加したバージョンを作ってみました。 印刷するときは、サイトバーが印刷されないようにしました。 サンプルページはこちらです。 |