The Line in Question is:
<?php
$weatherApi = implode('', file('http://www.google.com/ig/api?weather=65459'));
...
Cron is returning:
/home/me/public_html/extra/weatherGet.php: line 1: ?php: No such file or directory
/home/me/public_html/extra/weatherGet.php: line 2: syntax error near unexpected token `('
/home/me/public_html/extra/weatherGet.php: line 2: ` $weatherApi = implode('', file('http://www.google.com/ig/api?weather=46802'));'
I have a lot of code that relies on the contents of $weatherApi to be the output of: http://www.google.com/ig/api?weather=65459
It works fine if I run the script by entering the URL into the browser but fails when scheduled by Cron.
Any help is greatly appreciated, thanks