PHP Hello world Cron Job in Cpanel (step by step explained)
Step 1: Login to cpanel and click the Cron Jobs.
Step 3: Give the command like this in the above image,
php -q -f /home/YOUR_LOGIN_NAME/public_html/croncheck.php
Step 4: croncheck.php contains simple echo,
<?php echo "cron job running"; ?>
Step 5: We will be getting the email if we have configured the cron email in the Cron Jobs.
For the above program we will get email with the subject,
"Cron Job running"
PHP Recommended Books:
560 total views, 1 views today