作者:菌挥发油 | 来源:互联网 | 2018-03-19 12:21
参考:www.netasp.com.cnvalleygettitleindex.php代码如下:<pre><?get_title.php$filefile(www.netasp.com.cn);$countcount($file);for($i
参考:http://www.netasp.com.cn/valley/gettitle/index.php
代码如下:
//get_title.php
&#36;file=file("http://www.netasp.com.cn");
&#36;count=count(&#36;file);
for(&#36;i=0;&#36;i<&#36;count;&#36;i++)&#123;
if(eregi("",&#36;file[&#36;i],&#36;out))&#123;
&#36;title=&#36;out[0];
&#125;
&#125;
&#36;title=substr(&#36;title,7,-8);
echo &#36;title;
?>
【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】