Page 1 of 1
Running a script once a day
Posted: Sat Jan 29, 2005 5:29 am
by wizzard81
Hello,
I'm having a script that i want to run once a day. My problem is my hosting provider doesn't allow me to use the Crontab. Are their other ways to run a script once a day?
Posted: Sat Jan 29, 2005 5:36 am
by hunterhp
Not likely, unless you have your computer on every day, and have the task manager open a browser window on your specified URL(Which I don't think is possible, atleast with my Windows version).
Try asking your host for cron jobs.
Posted: Sat Jan 29, 2005 1:56 pm
by DMcK
Here's a kludge for you...If you don't need the script to run at exactly the same time and you have enough visitors to your website, then you can add some code in your index.php that just checks a table in your database to see if you have already run the code for the current day; if it hasn't you run the script and update the database to indicate the script has run.
Doug
Posted: Sat Jan 29, 2005 2:35 pm
by timvw
there are also service providers like
http://www.webcron.org
Posted: Sat Jan 29, 2005 2:39 pm
by Joe
Do you have the ability to execute software on your server. If so you could develop an application in C which runs the specified URL at a given time.