php - Unexpected character in input: '\' -


i'm trying launch php script cron job in bluehost.

when access script manually woks, when triggered cron job gives following error:

[17-jul-2013 08:36:01] php warning:  unexpected character in input:  '\' (ascii=92) state=1 in /home2/xxxxx/public_html/xxxxx/reblog.php on line 17 [17-jul-2013 08:36:01] php parse error:  syntax error, unexpected t_string in /home2/xxxxx/public_html/xxxxx/reblog.php on line 17     

line 1 following:

$client = new tumblr\api\client($consumerkey, $consumersecret); 

i have feeling cron job uses different version of php, set 5.4.

any suggestions?

there's cli php version 5.4 available, ask bluehost full path , use it.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -