I am trying to write a cronjob controller, so I can call one website and have all modules cronjob.php executed. Now my problem is how do I do that?
Would curl be an
I extended gregor answer with this post. This is what came out:
//public/index.php // Run application, only if not started from command line (cli) if (php_sapi_name() != 'cli' || !empty($_SERVER['REMOTE_ADDR'])) { $application->run(); }
Thanks gregor!