资源说明:CakePHP Stock Data Component
A Simple CakePHP component that using cURL to grab stock data form Yahoo. More info on how to modify what data is coming through can be found here: http://www.gummy-stuff.org/Yahoo-data.htm Installation 1. Place stocks.php in app/controllers/components/ 2. In the controller you are working with make sure to add Stocks to the components array. (I.E. var $components = array('Stocks');) Usage Pass the 'get' function an array of stock symbols: $this->Stocks->get(array('AAPL')); And you should receive an array that looks like this: Array ( [0] => Array ( [symbol] => "AAPL" [change] => "-1.31" [current] => 203.91 ) )
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。