Reply
Cron for a windows server running apache
Old 05-04-2008, 03:18 PM Cron for a windows server running apache
Novice Talker

Posts: 9
I am trying to set up a cron.php file to run a database cleanup every hour. This is allowing me to have a demo site and reset the database back to the original every so often. how do i get the cron to run and how do i get it to set up
bretterer is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 05-04-2008, 03:23 PM Re: Cron for a windows server running apache
addonchat's Avatar
Skilled Talker

Posts: 97
Name: Chris Duerr
I make it a habit of not running Windows on my servers, but I'd imagine you could just setup a scheduled task (Programs -> Accessories -> System Tools -> Task Scheduler) then have it execute your program (e.g., "/path/to/php /path/to/script.php")
__________________
Chris Duerr
AddonChat Java Chat Software
http://www.addonchat.com/ - Affiliate Program
addonchat is offline
Reply With Quote
View Public Profile
 
Old 05-05-2008, 12:35 AM Re: Cron for a windows server running apache
nickohrn's Avatar
Weightlifting CS Student

Posts: 505
Name: Nick Ohrn
addonchat is right. There is no cron program that you use on Windows like there is on Linux. If you want to perform something at a certain time or interval, you set up a scheduled task. See this site for a tutorial.
__________________
Plugin-Developer.com - Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others.
nickohrn is offline
Reply With Quote
View Public Profile Visit nickohrn's homepage!
 
Reply     « Reply to Cron for a windows server running apache
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10823 seconds with 13 queries