PHPでget_headers関数を使用して、ローカルサーバーのWebサイトからヘッダーを要求します。Webサイトで使用するときに配列を返します。配列を返しません。
返品の例
ローカルサーバーで
配列
((
[0] => HTTP /1.1301移動
[サーバー]=>アレイ
((
[0] => nginx / 0.7.42
[1] => Apache / 2.2.11(Unix)mod_ssl / 2.2.11 OpenSSL / 0.9.8e-fips-rhel5 mod_auth_passthrough / 2.1 mod_bwlimited / 1.4
[2] => Apache / 2.2.11(Unix)mod_ssl / 2.2.11 OpenSSL / 0.9.8e-fips-rhel5 mod_auth_passthrough / 2.1 mod_bwlimited / 1.4
[3] => Microsoft-IIS / 7.0
)。
[Content-Type]=>配列
((
[0] => text / html; charset = utf-8
[1] => text / html; charset = iso-8859-1
[2] => text / html
[3] => text / html; charset = utf-8
)。
[場所]=>配列
((
[0] => http // 3.ly / aXP
[1] => http // 3.ly / aXP /
[2] => http // stackoverflow.com
)。
[MIMEバージョン]=>1.0
[Content-Length]=>配列
((
[0] => 277
[1] => 376
[2] => 0
[3] => 122213
)。
)。
実サーバーで
配列
((
[0] => HTTP /1.1301移動
[サーバー]=>nginx / 0.7.42
[日付]=>2009年10月10日土曜日03:15:32GMT
[Content-Type] => text / html; charset = utf-8
[接続]=>キープアライブ
[場所]=>http // 3.ly / aXP
[MIMEバージョン]=>1.0
[コンテンツの長さ]=>277
)。
配列を返しません
ありがとう....