Alternative to crons
Posted: Tue Jan 05, 2010 5:09 pm
Thought I would post some alternatives in case your web host does not support them
1. If you have a PC that stays on most of the time you can schedule it to open a browser and load a page however often you need it to. Just make sure to use a get variable for a password. example yourwebpage.com?cronpassword=343443423423434234234
then put a get method
if($_get['cronpassword'] == 343443423423434234234)
{
do script
}
2. Set a check on every login page. If time()= whatever time then do script. then set a table crons, that record when they went off. That way you are not doing the same one every time someone logs in. Or for every 10th person per hour that logins in do script.
3. find a friend with a web host that has crons and just use theirs to run your script from your web host.
if anyone has any others please share.
1. If you have a PC that stays on most of the time you can schedule it to open a browser and load a page however often you need it to. Just make sure to use a get variable for a password. example yourwebpage.com?cronpassword=343443423423434234234
then put a get method
if($_get['cronpassword'] == 343443423423434234234)
{
do script
}
2. Set a check on every login page. If time()= whatever time then do script. then set a table crons, that record when they went off. That way you are not doing the same one every time someone logs in. Or for every 10th person per hour that logins in do script.
3. find a friend with a web host that has crons and just use theirs to run your script from your web host.
if anyone has any others please share.