<table cellspacing="0" cellpadding="0"> <tr> <td class="t_f" id="postmessage_66003"> <div class="blockcode"> <div id="code_h88"><ol> <li><?php<li>header('HTTP/1.1 200 OK'); // 通常のアクセスはOKです<li>header('HTTP/1.1 404 Not Found') // ページが存在しないことをブラウザに通知します<li> header(' HTTP/1.1 301 Moved Permanently'); // 永続的にリダイレクトされるアドレスを設定します 301<li>header('Location: http://www.ithhc.cn/') // 新しいアドレスにジャンプします<li>header ( 'Refresh: 10; url=http://www.ithhc.cn/'); //遅延リダイレクトとは、数秒ごとにジャンプすることを意味します<li>header('X-Powered-By: PHP/6.0.0'); X-Powered-By 情報を変更する<li>header('Content- language: en'); //ドキュメント言語<li>header('Content-Length: 1234'); // コンテンツの長さを設定する<li>header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $time).' GMT') // ブラウザに最終変更時刻を通知<li>header('HTTP/1.1 304 Not Modified'); // ブラウザに通知ドキュメントのコンテンツは変更されていません<li><li>###Content type###<li>header('Content-Type: text/html; charset=utf-8'); //Web ページのエンコーディング<li>header('Content-Type: text/ plain '); //プレーンテキスト形式 <li>header('Content-Type: image/jpeg'); //JPG、JPEG <li>header('Content-Type: application/zip'); // ZIP ファイル <li>header(' Content -Type: application/pdf'); // PDF ファイル<li>header('Content-Type: audio/mpeg') // 音声ファイル<li>header('Content-type: text/css'); <li> header('コンテンツ タイプ: text/javascript'); //js ファイル<li>header('コンテンツ タイプ: application/json') //json<li>header('コンテンツ タイプ: application/pdf'); / pdf<li>header('Content-type: text/xml'); //xml<li>header('Content-Type: application/x-shockw**e-flash'); //Flash アニメーション<li><li>#### # #<li><li>###ダウンロードしたファイルを宣言します###<li>header('Content-Type: application/octet-stream');<li>header('Content-Disposition:attachment; filename="ITblog.zip"'); <li>header('Content-Transfer-Encoding: binary');<li>readfile('test.zip');<li>######<li><li>###現在のドキュメントのキャッシュを無効にする###<li>header('Cache - コントロール: キャッシュなし、ストアなし、max-age=0、must-revalidate');<li>header('有効期限: 月曜日、1997 年 7 月 26 日 05:00:00 GMT');<li>###### <li> <li>###認証が必要なログインダイアログボックスを表示します### <li>header('HTTP/1.1 401 Unauthorized') <li>header('WWW-Authenticate: Basic realm="Top Secret"'); # ##<li><li><li>###ダウンロードする必要がある xls ファイルを宣言します###<li>header('Content-Disposition:attachment; filename=ithhc.xlsx');<li>header('Content-Type: application/vnd .openxmlformats-officedocument.spreadsheetml.sheet');<li>header('Content-Length: '.filesize('./test.xls')); <li>header('Content-Transfer-Encoding: binary'); 'キャッシュ コントロール: 必須再検証'); <li>header('プラグマ: public'); <li>#####<li><li><li>?></li> <li> <li> <li> </li> </ol></div> <em onclick="copycode($('code_h88'));"></em> </div> <br> </td> PHP、ヘッダー</tr> </table> <div class="ptg mbm mtn"> </div> <div id="comment_66003" class="cm"> </div> <div id="post_rate_div_66003"></div>