간단하게 던져지는 값 가져오기...파싱 ?

간단하게 던져지는 값 가져오기

일단 2가지

흠...이것도 파싱일수도 ㅎㅎ

1.
$url="http://bibaram.com";
$data = @file($url);
echo $date[0]; // 변수가 많으면 0, 1, 2, 3......

2.
function URLopen($url)
{
$dh = fopen("$url",'r');
$result = fread($dh,8192);
return $result;
}

$returned=URLopen("http://bibaram.com");
echo $returned;

Press ESC to close