零七广告
参考:http://www.netasp.com.cn/valley/gettitle/index.php
代码如下:
<pre>
<?
//get_title.php
$file=file("http://www.netasp.com.cn");
$count=count($file);
for($i=0;$i<$count;$i++){
if(eregi("<title>(.*)</title>",$file[$i],$out)){
$title=$out[0];
}
}
$title=substr($title,7,-8);
echo $title;
?>
</pre>
【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】
零七网部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与零七网进行文章共享合作。
零七广告