View Full Version : Cronjobs on any server
Okay, I was wondering if there was a way to setup cron jobs on any server with a php script so a php script would get excecuted at certain times automaticaly but not dependant on how php is installed. Could someone help me with this?
frankcow
Mar 7th 2006, 7:33 am
You would have to get this info from your host
Cron is not dependant on PHP
Yeah, though is there possibly another solution to this?
frankcow
Mar 7th 2006, 7:37 am
not that I'm aware of
luxinterior
Mar 7th 2006, 7:39 am
Not sure if this is what your looking for but you can try a service like www.cronservice.co.uk for free to see if it suits your needs. - shameless plug but a great service :D
Lux
Thank you both for your help, but I need a solution for a script I'm making for someone else and I don't know how he'd like to use a service like that. I will keep a lookout, I believe I may have an alternative way of running it though I will have to see if it's alright. :)
GeorgeB.
Mar 7th 2006, 8:27 am
Okay, I was wondering if there was a way to setup cron jobs on any server with a php script so a php script would get excecuted at certain times automaticaly but not dependant on how php is installed. Could someone help me with this?
1) As stated cron is not dependent on PHP so it doesn't matter how PHP is configured.
2) Log into your cpanel account and click on the cron setup link. It's pretty easy.
Yes, I know, but I was wondering how to make a php script do this on its own. I know that cron jobs are not dependant on php, it's the working with it via php than I want to know.
frankcow
Mar 7th 2006, 1:07 pm
you can't
the nature of PHP (or any server-side script) is that it's executed when called by the server (when a visitor requests it). There's no way to change that
Okay, well, I think I may have another alternative. :)
frankcow
Mar 7th 2006, 3:09 pm
what's that?
I mean an alternative to having it run the script every so often. lol Just so the fields have an expiration time set to it and if it's passed that field doesn't get picked up, that's all.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.