0
votes

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. Sends emails without any cron job

3
Why don't you want to use cron as is? - Brute force solution is for you to be the cron (check in on a web page that executes what you want every x hours) ;)Peter Ajtai
Okay so I saw this webapp called piwik and I never set a cron job for her and it's sending emails every week/monthelibyy

3 Answers

5
votes

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.

0
votes

No.

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

Cron is ideal though.

-2
votes
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.