cPanel error on Cron Job - does this mean anything to you?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

cPanel error on Cron Job - does this mean anything to you?

Post by simonmlewis »

[text]PHP Parse error: syntax error, unexpected '{' in /usr/selector/php-cli on line 3752
Content-type: text/html

<br />
<b>Parse error</b>: syntax error, unexpected '{' in <b>/usr/selector/php-cli</b> on line <b>3752</b><br />[/text]

We are trying to run Cron Jobs, but each time the email the server issues, submits this.
This is the command :

php /usr/local/bin/php -q /home/j562595/public_html/filenamehere.php
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: cPanel error on Cron Job - does this mean anything to yo

Post by Celauran »

Why are you calling the php command twice?
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: cPanel error on Cron Job - does this mean anything to yo

Post by simonmlewis »

I'm not. Am i?? that command is what they hosts told me to use.
what should I be using??
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: cPanel error on Cron Job - does this mean anything to yo

Post by simonmlewis »

You are absolutely right, and they have since told me my command is wrong, eventho they told me to use it! How daft is that!!

Ta.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply