Update webpagetool.php
This commit is contained in:
parent
846652deb9
commit
79456367fa
|
@ -93,3 +93,19 @@ if(!function_exists("get_web_dom")) {
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!function_exists("get_web_meta")) {
|
||||||
|
function get_web_meta($url, $method="get", $data=array(), $proxy="", $ua="", $ct_out=45, $t_out=45) {
|
||||||
|
$details = array();
|
||||||
|
$response = get_web_page($url, $method, $data, $proxy, $ua, $ct_out, $t_out);
|
||||||
|
|
||||||
|
// load PHP-Metaparser
|
||||||
|
if($response['size'] > 0) {
|
||||||
|
loadHelper("metaparser.lnk");
|
||||||
|
$parser = new MetaParser($response['content'], $url);
|
||||||
|
$details = $parser->getDetails();
|
||||||
|
}
|
||||||
|
|
||||||
|
return $details;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user