2013年7月11日木曜日

確認したいPHP 関数 2つ

確認したいPHP 関数 2つあります。



print_r(get_headers($url));
print_r(get_meta_tags($url));

1 件のコメント:

kankanla さんのコメント...

http://www.youtube.com
get_headers
Array
(
[0] => HTTP/1.0 200 OK
[1] => Date: Mon, 02 Sep 2013 13:57:41 GMT
[2] => Server: gwiseguy/2.0
[3] => Set-Cookie: VISITOR_INFO1_LIVE=H86-dzDGBZw; path=/; domain=.youtube.com; expires=Sun, 04-May-2014 01:50:41 GMT
[4] => Set-Cookie: YSC=XD2aSegn9Kk; path=/; domain=.youtube.com; httponly
[5] => Set-Cookie: PREF=f1=50000000; path=/; domain=.youtube.com; expires=Sun, 04-May-2014 01:50:41 GMT
[6] => P3P: CP="This is not a P3P policy! See http://support.google.com/accounts/bin/answer.py?answer=151657&hl=ja-JP for more info."
[7] => X-YouTube-Other-Cookies: VISITOR_INFO1_LIVE=H86-dzDGBZw;PREF=f1=50000000
[8] => Cache-Control: no-cache
[9] => Expires: Tue, 27 Apr 1971 19:44:06 EST
[10] => X-Frame-Options: SAMEORIGIN
[11] => Content-Type: text/html; charset=utf-8
[12] => X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/logs/youtube
[13] => X-Content-Type-Options: nosniff
[14] => Alternate-Protocol: 80:quic
)

get_meta_tags
Array
(
[description] => 動画を作成し、友だちや家族、世界中の人たちと共有
[keywords] => 動画,ビデオ,共有,カメラ付き携帯電話,動画機能付き携帯電話,無料,アップロード,チャンネル,コミュニティ,YouTube,ユーチューブ
)