php抓即时股票信息
AI摘要
由 AI 生成 · 仅供参考
php抓即时股票信息,php抓即时股票信息lt;?nbsp;nbsp;$file_name=quot;index.htmquot;;nbsp;nbsp;ifis_file$file_name{nbsp;nbsp;execquot;cat$file_namequot;,$buffer;nbsp;nbsp;for$i=0;$ilt;count$buffer;$i++{nbsp;nbsp;ifstrstr$buffer[$i],quot;lt;!--股市每日動態--gt;quot;break;/..
php抓即时股票信息
<?
$file_name="index.htm";
if(is_file($file_name)) {
exec("cat $file_name",$buffer);
for($i=0;$i<count($buffer);$i++) {
if(strstr($buffer[$i],"<!--股市每日動態-->")) break; //找到這一行
}
for($j=$i;$j<$i+70;$j++) { //抓以下70行
$str.= $buffer[$j];
}
echo $str;
}
?>
版权声明:本文由驱动中国整理发布,转载需注明出处与原文链接。如有疑问请联系
editor@qudong.com。
本文价值
★★★★★
—
成为第一个评分的人
登录后为本文打分
评论加载中…