updating DB Row every minute?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
DNice
Forum Newbie
Posts: 2
Joined: Fri Apr 08, 2005 11:13 am

updating DB Row every minute?

Post by DNice »

i need a php code that automaticly updates a row in my database every minute, i've tried almost everything in my books but they dont work. Please help a noob out.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

just go to your favorite searchengine and type: "php run script every minute"
or search in this forum "run script every minute"



done.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

timvw wrote:just go to your favorite searchengine and type: "php run script every minute"
or search in this forum "run script every minute"
Or the more technical term, "cron job" (Info).

121 matches on this page searching for this. Most Linux admins know about this, but I belive there are Win32 ports for cron aswell. Mentioning it as you didn't mention if the server you are using is *nix || Win32.
DNice
Forum Newbie
Posts: 2
Joined: Fri Apr 08, 2005 11:13 am

Post by DNice »

ok all i found is crontab things, and i tried that but they arnt working, is there anyway to do this with the date function?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

JAM wrote: Or the more technical term, "cron job" (Info).
I'm aware of cron(tab) but i don't expect someone new to know what term. (because in that case he wouldn't have a problem :o)

That is why i choose words of the OP himself to see if he would find the relevant info with a simple search.
Post Reply