开发者

Cron job with php

开发者 https://www.devze.com 2023-04-09 15:35 出处:网络
How can you do a cron job with php without creating a cron Job on the server cron software Is that even possible ?

How can you do a cron job with php without creating a cron Job on the server cron software

Is that even possible ?

EDIT as I added in a comment I've seen a script called piwik who does that kind of stuff, e.g. Send开发者_高级运维s emails without any cron job


I think the best you could do is make a cron job that periodically checks a file X for cron jobs and runs them. Then all you would have to do is add jobs to X instead of to cron.


No.

You can try online services like http://pingability.com/

Cron is ideal though.


set_time_out(0);
ignore_user_abort(true);

while(1){
sleep(1); // sleep one sec every time.
//do your stuff here..
//you can use time() with IF to make it execute something only on specific timing.
}

Not recommended.

0

精彩评论

暂无评论...
验证码 换一张
取 消