<br> <br> //get_title.php <br> $file=file("http://www.netasp.com.cn"); <br> $count=count($file); <br> <br> for($i=0;$i if(eregi("<title>(.*)</title>",$file[$i],$out)){ <br> $title=$out[0]; <br> } <br> } <br> <br> $title=substr($title,7,-8); <br> echo $title; <br> ?> <br>