Hi, I have a textbos in which I have 10 URL's, my aim is to retrieve Title information of all these 10 URL's and than store them into db. Can anybody help me in finding a way to retrieve title of a URL ? Thanks in advance
From http://www.zend.com//code/codex.php?ozid=233&single=1 <?php function get_title_tag($chaine){ $fp = fopen ($chaine, 'r'); while (! feof ($fp)){ $contenu .= fgets ($fp, 1024); if (stristr($contenu, '<title>' )){ break; } } if (eregi("<title>(.*)</title>", $contenu, $out)) { return $out[1]; } else{ return false; } } ?> PHP: Usage: <?php echo get_title_tag('http://www.zend.com'); ?> PHP: Jay