Page 1 of 1

refresh page every day

Posted: Mon Jan 29, 2007 9:39 am
by acwe88
Hi People,

Not sure if this is possible or not but can you make a php page refresh every day.

Basically i have a script which emails me (30 days in advance) when my domain names are up for renewal, But i have to run this script everyday MANUALLY.

so I am looking for some sort of function that runs my script everyday automatically

Thanks
Alex

Posted: Mon Jan 29, 2007 9:53 am
by TheMoose
Check with your host to see if they allow cron jobs. It's basically a scheduled local execution of a PHP script, instead of having to refresh a page (requires keeping the browser open 24/7).

Posted: Mon Jan 29, 2007 9:53 am
by Kadanis
don't know about an actual PHP script but the way I do it is to use CRON (if you're running on a Linux box). just set the command line for the Cron as

/usr/bin/php-cgi -q /{LOCATION_OF_PHP_FILE} (replace the obvious :D )

and then set the schedule. it will then run when ever you want and carry out what ever is in the script.


if you're running on Windows Server, I guess you could try and use Windows Scheduler, but I wouldn't know where to begin with that. Sorry

Posted: Mon Jan 29, 2007 9:56 am
by acwe88
Thats great

thanks for your help

Alex

re: refresh page every day

Posted: Wed Jan 31, 2007 8:59 pm
by iw2km
If your hosting provider does not allow cron jobs you can try an online cron utility like http://www.wsscheduler.com.