Is it Possible to make a script that automatically runs even without loading the page that can update the values of the database based on the time condition? how?

share|improve this question
You can use php as a regular script, you don't have to load a page. Combine that with cron and you can have your php script call the same function that gets called by your web page (or whatever updates to the DB you need – Juan Mendes Dec 5 '12 at 3:14

1 Answer

You can use a cron job. It will automatically run depending on your settings, it can run as often as every minute or as rarely as once a year. It is totally up to you.

Usually it is easy to set up so you should not have any problems with that.

We need more details about your set up though.

share|improve this answer
can I set it up using localhost for testing it before uploading it to the host server? what are the things that i need to remember in installng cron job? please help.. – Bryan Giray Dec 8 '12 at 3:11
@BryanGiray What is your local setup? – Teodor Talov Dec 8 '12 at 19:18
just the typical xampp localhost. how complicated it is to install? – Bryan Giray Dec 9 '12 at 15:32

Your Answer

 
or
required, but never shown
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.