Cron Jobs

lordsatw

New Member
Messages
3
Reaction score
0
Points
0
Am using

php-cron /public_html/crons/cron24r.php

php-cron /public_html/crons/cron30r.php

every hour and it aint working?:dunno:
 

lordsatw

New Member
Messages
3
Reaction score
0
Points
0
i got it on full path but still aint working please help me i suck at cron its my 1 time

Status: 404 Not Found
X-Powered-By: PHP/5.2.6
Content-type: text/html

No input file specified.
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
Using regular mode (not the unix style advanced mode) you should type in this command: /usr/local/bin/php /home/{cpanel user name}/{file you want to run} then set the frequency.
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
I have a question, do I need to put the <?php ?> tags when using the shebangs? if so, were do I put them?
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
tags must go after shebangs. Shebangs must be absolutely first in the file.
 

lordsatw

New Member
Messages
3
Reaction score
0
Points
0
Can i use http://www.page.com/cron.php as path?


by the way am geting this error

Warning: include(../includes/inc-setup.php): failed to open stream: No such file or directory in /home/lordsatw/public_html/cron/cron24r.php on line 4

Warning: include(): Failed opening '../includes/inc-setup.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lordsatw/public_html/cron/cron24r.php on line 4

Fatal error: Call to a member function query() on a non-object in /home/lordsatw/public_html/cron/cron24r.php on line 6

on my email
 
Last edited:

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
these mean that there is an error. check if the files '/home/lordsatw/public_html/includes/inc-setup.php' and '/home/lordsatw/public_html/includes/inc-setup.php' exists.
 
Top