3 ms·
Trying to use a repeating timer event in a webpage to call a PHP script is a pretty bad idea. It'd be horribly fragile. Your main options are really either cron
by onion2k 10y ago
Trying to use a repeating timer event in a webpage to call a PHP script is a pretty bad idea. It'd be horribly fragile. Your main options are really either cron (which is a pain but once you get it working you're fine) or a long-running process. If you really don't want to use cron then nodejs or python would be pretty solid choices.
- ge96 10y agoIt's not that I don't want to use CRON, I just couldn't get it to work when I tried. I tried with Ubuntu (root problem), then I tried debian (no root problem) but it wouldn't execute. I think I did look at the dmesg or something logs I can't remember the reason but yeah it wouldn't execute my test script. Haven't touched nodejs or python but I am open to it. Thanks. I'm alright with JavaScript (I can build things that I want in general) so maybe Node. Python the syntax I'm not familiar (have to practice/use it) Anyway thanks for the info