Tag Archive for 'stock'

Financial stock market quotes grabber & caching class

OUTDATED: This software is a PHP class to grab the latest stocks from Yahoo Finance, and to cache them optionally (works with all PHP hosting solutions). To gather data regularly, you can use a crownjob. If you are using Linux type crontab -e on the shell. Then insert the following line (adapt the paths) to your crown file

* * * * * /usr/local/bin/php /home/marc/yahoo.stocks.class.php

and the cron-deamon will execute the script every minute, thus collecting the stock data.

To download the class click PHP Icon right here (do not forget to rename phps to php).