geoserv
01-26-2008, 12:57 AM
I have a site where people can submit a website for other members to vote on and visit. Much like Digg.
I have a file (attached) that fetches the URL and makes sure it is valid.
I am trying to limit the URL titles it displays, for example:
Web Site Name: Page TitleI want to remove everything up to the : and only display what is after it.
I tried this:
if(preg_match("'<title>([^<]*?)</title>'", $this->html, $matches)) {
$this->url_title=trim($matches[1]);
list($notused, $strTitle) = explode(":", $this->url_title);
but it didn't make a difference.
Any ideas or suggestion?
Geoserv.
I have a file (attached) that fetches the URL and makes sure it is valid.
I am trying to limit the URL titles it displays, for example:
Web Site Name: Page TitleI want to remove everything up to the : and only display what is after it.
I tried this:
if(preg_match("'<title>([^<]*?)</title>'", $this->html, $matches)) {
$this->url_title=trim($matches[1]);
list($notused, $strTitle) = explode(":", $this->url_title);
but it didn't make a difference.
Any ideas or suggestion?
Geoserv.