The other advantage of using curl is that you also can keep the HTTP way of sending parameters to your script if you need to, by using $_GET
, $_POST
etc like this:
*/15 * * * * curl --request GET 'https://exemple.com/path/check.php'
ที่มา https://stackoverflow.com/questions/11375260/cron-command-to-run-url-address-every-5-minutes