View Single Post
  #24 (permalink)  
Old 02-13-2008, 04:09 AM
nzbullet's Avatar
nzbullet nzbullet is offline
Constant Pligger
 
Join Date: Jun 2007
Location: New Zealand
Posts: 133
Thanks: 17
Thanked 19 Times in 14 Posts
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]);
		}
__________________
Cheers

Dan
Reply With Quote