Alternative to crons

C++, C#, Java, PHP, ect...
Post Reply
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Alternative to crons

Post by hallsofvallhalla »

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.
User avatar
Chris
Posts: 1581
Joined: Wed Sep 30, 2009 7:22 pm

Re: Alternative to crons

Post by Chris »

4. Buy webhosting with crontab XD.
Fighting for peace is declaring war on war. If you want peace be peaceful.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Alternative to crons

Post by hallsofvallhalla »

haha yeah well that works too but some people use free sites that do not support them.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Alternative to crons

Post by hallsofvallhalla »

Deluxxmanx found this site

http://cronless.com/
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Alternative to crons

Post by OldRod »

I saw on another page about using an "on view" instead of a cron... I can't come up with the link at the moment, but has anyone messed with them at all?
Falken
Posts: 438
Joined: Fri May 08, 2009 8:03 pm

Re: Alternative to crons

Post by Falken »

Another way to make crons quite secure is if you got a static IP you can allow the page to run only if it was accessed from the correct IP.
--- Game Database ---
For all your game information needs!
Visit us at: http://www.gamedatabase.eu today!
User avatar
Torniquet
Posts: 869
Joined: Sun Aug 02, 2009 6:18 am

Re: Alternative to crons

Post by Torniquet »

New Site Coming Soon! Stay tuned :D
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Alternative to crons

Post by OldRod »

Oh, yeah, that's where I saw it :)
User avatar
MAruz
Posts: 117
Joined: Fri Nov 20, 2009 12:31 pm

Re: Alternative to crons

Post by MAruz »

I got a link from the support team at one.com regarding crons: http://www.webcron.org/ Though they charge for their services it isn't much. If you still don't want to pay I'd go for http://cronless.com/ as Deluxxmanx suggested if it suit your needs (which is up to 2x cron jobs per day for free, no hourly crons for free with this service in other words!).
PHP, Java, JavaScript, HTML, CSS, XML, MySQL / Oracle
Photoshop, Illustrator
www.cuddly-zombie.com
Post Reply

Return to “Coding”