Execute a script automatically - without the use of CRON

3

I usually run a script that should be run from time to time (such as request status updater, for example) using Linux CRON. (I have no idea how to do this in Windows hosting)

However, I noticed that Wordpress seems to do this without using CRON, because it automatically updates itself when the owner of your installation has access to it. But I did not find in his code how he does it.

Detail, this update works regardless of the OS used (even on windows).

How, then, to create a listener that runs automatically?

Application: App auto updater, order status updater, file backup creator, and more.

    
asked by anonymous 13.05.2015 / 15:01

1 answer

2

What the wp does is when someone accesses the application it checks the schedule and performs what is needed, just like cron in windows we have the task scheduler that can be used for this.

The listner is when the blog is accessed, because I have some blogs with a weekly schedule and do not access them daily, but their posts are always being made.

    
13.05.2015 / 15:15