A cron job is a Linux command for scheduling a task to be executed sometime in the future.Cron Jobs are used for scheduling tasks to run on the server. They're most commonly used for automating system maintenance. However, they are also relevant to web application development. There are many situations when a web application may need certain tasks to run periodically such as Notification mail , newsletter etc.
Syntax : -
5 * * * * /usr/bin/php /www/codeforphp/cron/cron.php > /dev/null 2>&1 ( file path )
OR
5 * * * * php /home/codeforphp/public_ html/testtt.php
OR
5 * * * * curl http://codeforphpdevelopers.com/testtt.php
NOTE : -
in windows server , you can use scheduler for cron job.
Syntax : -
5 * * * * /usr/bin/php /www/codeforphp/cron/cron.php > /dev/null 2>&1 ( file path )
OR
5 * * * * php /home/codeforphp/public_
OR
5 * * * * curl http://codeforphpdevelopers.com/testtt.php
NOTE : -
in windows server , you can use scheduler for cron job.