Retrieving a Web Page Title
Part I: Open Web Page (PHP Classes, credit: Vedanta Barooah)
function get_webpage($url,$use_include_path=0){
$file = @fopen($url, 'rb', $use_include_path);
if ($file){
if ($fsize = @filesize($filename)){
$data = fread($file, $fsize);
}else{
while (!feof($file)){
$data .= fread($file, 1024);
}
}
fclose($file);
}
return $data;
}
The PHP fopen page
Part II: Extract info between title tags (PHP Freaks)
More Web-Fetching scripts: Hotscripts.com
function get_webpage($url,$use_include_path=0){
$file = @fopen($url, 'rb', $use_include_path);
if ($file){
if ($fsize = @filesize($filename)){
$data = fread($file, $fsize);
}else{
while (!feof($file)){
$data .= fread($file, 1024);
}
}
fclose($file);
}
return $data;
}
The PHP fopen page
Part II: Extract info between title tags (PHP Freaks)
More Web-Fetching scripts: Hotscripts.com
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home