Jump to content

php cron


phpnewbie112

Recommended Posts

Have you checked if your server allows automated cron jobs? If so you could do it all easily from your server control panel!!

 

Otherwise this is a little insight;

 

# .---------------- minute (0 - 59) 
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ... 
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7)  OR sun,mon,tue,wed,thu,fri,sat 
# |  |  |  |  |
  *  *  *  *  *  command to be executed

Link to comment
https://forums.phpfreaks.com/topic/139502-php-cron/#findComment-729799
Share on other sites

I'm not 100% but I believe most shared servers (im guessing your on a shared server) will not allow you access to the file that sets the cron job, expecially if they give you the ability to set it. You'd be better off setting one to trigger monthly (if that's what you required)

Link to comment
https://forums.phpfreaks.com/topic/139502-php-cron/#findComment-729805
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.