I hope any one can help me...thank you.
function Stock(){
$fp = fopen ("http://finance.yahoo.com/d/quotes.csv?s=0016.HK&f=sl1d1t1c1ohgv&e=.csv","r");
$data = fgetcsv($fp, 1000, ', ');
fclose($fp);
return array_values($data);
}
function GetStock(){
window.setInterval("agent.call('','Stock','Stock_Callback');",3000);
}
Detail: I want to call the php stock() function every 3 sec to update my stock value in my page. My web is use ajax. My target is make the stock value auto update and dont need refresh all the page.
Problem: i found that the IEXPLORE.EXE memory is increase every 3 sec..until the brower tell me the memory is full... I think the fclose() function is not work.. Can i fixe it???