Hi I am using justhost web server and trying to set a cron job but it is not producing any output . I am using this command in the cpanel
php -q /home6/username7/public_html/folder/app/cron.php
the name display on cpanel file browser is like home6 . any help will be appreciated . and how to check is this command is right or wrong.thanks in advance
Did you try with this :
Command to run for a PHP5 cron job:
/usr/local/php5/bin/php5 /home/username/public_html/cron.php
Command to run for a PHP4 cron job:
/usr/bin/php /home/username/public_html/cron.php
you should try this. ( give path to php command )
/usr/bin/php -q /home/username/public_html/yourfilename.php
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.