You set up a cron job and it gives an error such as
Parse error</b>: syntax error, unexpected '{' in
Then if you run the same script from the command line it runs perfectly.
Naturally enough you are a little confused!!
Try running a script containing just this code
<?php echo 'My PHP Version: ' . phpversion(); ?>
and then run it manually and using cron.
In my case with a 1and1 server, cron was runnng version 4.4.9 and the site 5.4.14.
The reason for the error, in my case, was that the php command try is not available in the version of php being used by cron.
HTH
G










