I had a script which sends sms alerts everyday. I want it to send automatically send sms by fetching message from database. Can I do it without cron. Is there any other solu
It's not optimal, but without using any kind of scheduler what you could do is this.
Down sides of this is that:
You can use a webcron service to trigger your script.
Have an outside AppEngine cron job sheduler: Use google AppEngine, it's free. The outside "task" can then "callback" a PHP script of yours.
I fail to see what's wrong with using the local cron
on your machine though aside from it being blocked for you to access.
I've used windows Task Scheduler to schedule a script on a server I couldn't access cron on before, that worked fine.
This isn't the best answer as it still requires cron somewhere, but you could always setup another machine that does have cron, like your home computer for instance, to hit a page on your site which triggers the action (using a library like curl
or wget
).