diff --git a/helper/webpagetool.php b/helper/webpagetool.php index 3ab9f97..d2f3971 100644 --- a/helper/webpagetool.php +++ b/helper/webpagetool.php @@ -93,3 +93,19 @@ if(!function_exists("get_web_dom")) { 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; + } +}