...

View Full Version : Continous script execution on server



SystemJay
09-07-2009, 02:42 PM
Hey!

Alright Id need your help to get around some ideas how to do it or which
way would be the best to do it.

I need one PHP file to run on a server on every 30mins/1h depending on
which I choose (this can be hard coded, no matter). I simply have no idea
how to do it on the server. I of course can create various ways of refresh
and run it with a browser "client side" but Id like this to happen on the
server so that I do not need any client-side actions for it.

Thanks in advance! :D

whizard
09-07-2009, 03:34 PM
On a unix server, I'd look into cron jobs:

http://www.adminschoice.com/docs/crontab.htm

Dan

SystemJay
09-07-2009, 03:53 PM
Very good...
The server is by the way Linux.
Does this change anything or does linux has its own type of cron jobs?

whizard
09-07-2009, 05:29 PM
I think it should be the same, but I've never used them. I guess just search for how to implement it under your specific OS.

:thumbsup:

Dan

tailender1
09-08-2009, 07:05 AM
crontab is the way to go..
but if you run a script every 30min/hr they might remove your acces to crontab ( i am talking abt shared hosting)
here is a tutorial on crontab
http://linuxtuts.blogspot.com/2008/07/crontab.html

SystemJay
09-08-2009, 08:55 AM
Ill take a look into this, thanks for both of you.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum