Richard Keizer - 2011-11-05 15:45:26 - In reply to message 1 from mikescott
It looks like it needs updating:
if you fetching with a browser google returns different markup than fetching using fopen.
Problably google uses useragent checking and format according to that.
I think if you fetch using curl and set proper useragent things might work again.
mikescott - 2011-11-05 18:16:51 - In reply to message 3 from Richard Keizer
Not accessing Google via browser. This is used to directly import into mySQL database from a PHP script that uses the class. The script has worked flawlessly for, oh, I don't know, a year(?), but the past couple of weeks, some of the 20 or so currencies are shown as having a zero rate - re-run the script, and another 'set' (possibly overlapping the previous 'set') of currencies are shown as having a zero rate - and for the past two days ALL the currencies are shown as having a zero rate.
The currencies are in common use - GBP, USD, EUR etc. etc.
I don't know that the mod that is proposed would be of any benefit, but I would appreciate guidance or feedback.
mikescott - 2011-11-05 18:47:14 - In reply to message 6 from Richard Keizer
At first I thought that this had failed, because I had incorporated a mod provided to me via private message earlier by the originator. That mod didn't improve matters, and even with you code it fails.
BUT... revert (and thank goodness for svn) to the original code, add your function, and hey, presto all is well!!
Curiosity forces me to ask whether your function is somewhat version-specific?
mikescott - 2012-08-22 11:35:43 - In reply to message 8 from Richard Keizer
Hi there again. Is see that nearly a year has passed, and with your help I fixed the problem that I had encountered. Everything was hunky-dory, but in the past few days, the results retrieved from Google are all zeros for each of the 19 currencies that my script uses. I presume that Google has changed something, because the data is still available via Google - manually - but it is tiresome to have to update all the data manually every weekday!
Any guidance would be most appreciated. I can send my current code if that helps.