Hi there, Can anyone code the below with an 'if' statement so that if the url contains 'somesite.com' it does:
Code:
if(preg_match("'<title>([^<]*?)</title>'", $this->html, $matches)) {
$url_title=trim($matches[1]);
$url_title = explode(":",$url_title);
$this->url_title = $url_title[1];
else it does this:
Code:
if(preg_match("'<title>([^<]*?)</title>'", $this->html, $matches)) {
$this->url_title=trim($matches[1]);
}