I want to synchronize my app data ( stock ) with that of live ones . I am using Yahoo API .. Here is my code ..
// $companyInfo ; holds company information like symbol
foreach($companyInfo as $singleCompany)
{
$feedUrl = 'http://finance.yahoo.com/d/quotes.csv?s='.$singleCompany['Company']['Symbol'].'&f=l1c6gho&e=.csv';
$handle = fopen($feedUrl, "r");
$liveCompanyData = fgetcsv($handle);
if(!empty($liveCompanyData) && isset($liveCompanyData))
{
/*** here I parse data n save it in db ***/
}
fclose($handle);
}
Above code will work for small set of data (i.e for records 30 approx ), and for long set of records it will prompt me Maximum execution time of 60 seconds exceeded in .....
how can I do that ?
NOTE : I am using cakephp framework.