PHP part2
■ このスレッドは過去ログ倉庫に格納されています
0045デフォルトの名無しさん
2005/10/17(月) 19:41:28<html><head>
<META HTTP-EQUIV="Refresh" CONTENT="60">
<title>local quote</title></head>
<body>
<?php
$url="http://quote.yahoo.co.jp/";
$fcontents = file ($url);
while (list ($line_num, $line) = each ($fcontents)) {
$pos=strpos($line,"TOPIX");
if($pos<>0){
//echo "<b>Line $line_num:</b>; ", htmlspecialchars ($line), "<br>\n";
$line=ereg_replace("<nobr>","<br>",$line);
$line=ereg_replace("</nobr>"," ",$line);
$line=ereg_replace("<small>"," ",$line);
$line=ereg_replace("</small>"," ",$line);
$line="<".$line;
$view=strip_tags($line);
$result=explode(" ",$view);
echo date("Ymd g:i"),"<br>";
?><img src="http://chart.yahoo.co.jp/c/1b/9/998407.o.gif"><br><?
echo $result[8]," ",$result[11]," ",$result[13],"<br>";
echo $result[1]," ",$result[4]," ",$result[6],"<br>";
echo $result[15]," ",$result[18]," ",$result[20],"<br>";
echo $result[22]," ",$result[25]," ",$result[27],"<br>";
echo $result[29]," ",$result[32]," ",$result[34],"<br>";
echo $result[36]," ",$result[38],"<br>";
}}
?>
</body></html>
■ このスレッドは過去ログ倉庫に格納されています