Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Mar 12, 2012 2:52 am 
Offline
Junior Member

Joined: Sat Feb 11, 2012 3:29 pm
Posts: 26
Hi all, I Have a php file in which I have code that does resets a counter in my mysql database. I would like to have this php file execute everyday at 12:00AM . I am on Arch Linux, with Nginx and php-cgi. I google this and there found this bit of code :
Code:
0 0 * * * /path/to/php /var/www/html/reset.php


but I have no idea how to run it or how to set it in place. can any one help (also is that bit of code that simple? simply include the path to my php and the script)?


Top
   
PostPosted: Mon Mar 12, 2012 3:03 am 
Offline
Senior Member

Joined: Fri Dec 10, 2010 6:21 am
Posts: 144
nthvision wrote:
Hi all, I Have a php file in which I have code that does resets a counter in my mysql database. I would like to have this php file execute everyday at 12:00AM . I am on Arch Linux, with Nginx and php-cgi. I google this and there found this bit of code :
Code:
0 0 * * * /path/to/php /var/www/html/reset.php


but I have no idea how to run it or how to set it in place. can any one help (also is that bit of code that simple? simply include the path to my php and the script)?


If you want to add the snippet above to your user's crontab:
crontab -e


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: nqservices and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group