どこかからコピーしてきた
【PHP】bodyタグ内部を取得する方法
$contents = file_get_contents("http://xxxxxx/");
if (preg_match("/<body.*>([sS]*)</body>/i",$contents,$matches)){
$contents = $matches[1];
}
if (preg_match("/<body.*>([sS]*)</body>/i",$contents,$matches)){
$contents = $matches[1];
}
2006-11-13 15:00:00