How to schedule the php script without cron job


#1

Hi, i am working on the slim project which generates the newsletter daily on scheduled time. instead of setting up the cron job in cpanel , is there any option within php or slim framework so it will executed within the application?

i have seen few scripts which works in that behaviour but not sure how the logic was implemented.

when i move the script to different domain it should work without cpanel setup this is my requirement. can you guys help in it:?


#2

You can try using time_sleep_until and set the time based on the time the script finishes.


#3

I looked for job scheduler, and came across this one:


Seems interesting and easy

or this one:

(we use: beanstalkd with some php client)