I want a program in php and mysql that will read google finance fields and write them to a table in my database. I will have a table for each stock. I want to be able to specify a stock name (using the unique stock symbol) and have the script write the google finance fields to that table. I want to be able to specify the time (in GMT time) when the script will run. So I will have about 30 stocks and so 30 tables and depending on where the stock is located (NY, London, Hong Kong, etc) I want to write the data after the stock market is closed in that country. If possible I would like the script to fill the table with the last 2 years of data (but this is just a one time event since once the table has the old data (April 2010 to April 2012) it does not need to rewrite that data).