Launch a "script" every X hours

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
novito
Forum Commoner
Posts: 26
Joined: Mon Apr 07, 2008 11:08 am

Launch a "script" every X hours

Post by novito »

Hi everyone,

I have implemented an application that takes information and news from different RSS and add data into a database.

I have a .php file which is responsible to parse data from differents RSS into database, but I have to launch this script every X hours.

I have been reading about cronjobs and stuff but I'm not really sure if is a good option to do it.

Just wanna know opinions because I'm quite new in PHP.


Thank you all.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Re: Launch a "script" every X hours

Post by timvw »

Launching something periodically is exactly what cron(tab) was built for, thus imho it's the way to go.
Post Reply