Hi,
how can I pass parameters in cron job like I tried:
{...domain...}\cron_test.php?code=CRONCODE
and in cron_test.php I had:
if($_GET['code'] != "CRONCODE") {
print "WTF are you looking?";
die("");
}
//rest of cron code here
But it wont work... if I remove ?code=CRONCODE from cron job and if($_GET['code'] line from php it work (but without any protection)
If there is another way to protect cron jobs say...
Thanks,
Telmo Cardoso
how can I pass parameters in cron job like I tried:
{...domain...}\cron_test.php?code=CRONCODE
and in cron_test.php I had:
if($_GET['code'] != "CRONCODE") {
print "WTF are you looking?";
die("");
}
//rest of cron code here
But it wont work... if I remove ?code=CRONCODE from cron job and if($_GET['code'] line from php it work (but without any protection)
If there is another way to protect cron jobs say...
Thanks,
Telmo Cardoso