php抓即時(shí)股票信息
更新時(shí)間:2006年10月09日 00:00:00 作者:
php抓即時(shí)股票信息
<?
$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],"<!--股市每日動(dòng)態(tài)-->")) break; //找到這一行
}
for($j=$i;$j<$i+70;$j++) { //抓以下70行
$str.= $buffer[$j];
}
echo $str;
}
?>
<?
$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],"<!--股市每日動(dòng)態(tài)-->")) break; //找到這一行
}
for($j=$i;$j<$i+70;$j++) { //抓以下70行
$str.= $buffer[$j];
}
echo $str;
}
?>
相關(guān)文章
PHP convert_cyr_string()函數(shù)講解
今天小編就為大家分享一篇關(guān)于PHP convert_cyr_string()函數(shù)講解,小編覺得內(nèi)容挺不錯(cuò)的,現(xiàn)在分享給大家,具有很好的參考價(jià)值,需要的朋友一起跟隨小編來看看吧2019-02-02
Php+SqlServer實(shí)現(xiàn)分頁顯示
Php+SqlServer實(shí)現(xiàn)分頁顯示...2006-10-10
PHP模擬SQL Server的兩個(gè)日期處理函數(shù)
PHP模擬SQL Server的兩個(gè)日期處理函數(shù)...2006-10-10
PHP4 與 MySQL 數(shù)據(jù)庫操作函數(shù)詳解
PHP4 與 MySQL 數(shù)據(jù)庫操作函數(shù)詳解...2006-10-10
將OICQ數(shù)據(jù)轉(zhuǎn)成MYSQL數(shù)據(jù)
將OICQ數(shù)據(jù)轉(zhuǎn)成MYSQL數(shù)據(jù)...2006-10-10

