PDA

View Full Version : Windows cron program?


paim
12-19-2005, 06:49 AM
Sorry if this is in the wrong forum. I have a small game setup on my localhost (and people can access it through my ip)...but I need to run some crons to update energy etc.

The query is
<?php
include('connect.php');

$query = mysql_query("UPDATE userinfo SET energy = energy + 20");

?> and the file is called nrg.php....the exact location is localhost/game/nrg.php. Anyways, I need a program to run teh crons for me (like cPanel does on most hosting accounts), that is, if its possible. i downloaded some nnCron program which is slightly confusing me and won't do what I need it to.

Is there a program that is downloadable that can run crons on my local system? And works on Windows?

Thanks

Diod
12-19-2005, 08:51 AM
Most windows versions have a Task Planner(i don't know if this is the name in english), but its located in the windows config screen. U could make a small app that runs that query for you. Something writen with like .NET

scoutt
12-22-2005, 10:18 AM
yes, windows doesn't have a cron system. it is the task manager. which basically the samething as cron for *nix systems. you should be able to set it up to run the php at a certain time.

mrd
12-30-2005, 03:50 PM
As an alternative I would recommend VisualCron (http://www.visualcron.com). It can execute scripts both locally and remote by GET or POST. VisualCron can also execute to a detail of seconds.