Checking the Cron Scheduler
You can check the scheduler's operation as follows.
Using
your hosting panel , WebFTP section, or a regular FTP client, create two files in your domain folder
: testcron.php and
testcron.txt
Place the following code in the testcron.php file:
/home/HOSTING_LOGIN/domain.ru/ - must be replaced with the full domain path (specified in the Domains section)
When the task is executed, a line will be written to the testcron.txt file with the text File access - date and time of access:
This way we can see when the scheduler is triggered and whether it is triggered at all.
File accessed - 01/11/2011 10:13 PM
File accessed - 01/11/2011 10:14 PM
File accessed - 01/11/2011 10:15 PM
File accessed - 01/11/2011 10:16 PM
File accessed - 01/11/2011 10:17 PM
Don't forget to remove the task from the scheduler after checking it! Otherwise, the text file will grow over time.