Jump to content
MakeWebGames

Cronjobs


blackhawk

Recommended Posts

i cant get my crons to work php version is on 7.4

*/5 * * * * php http://rumblehighway.com/cron_fivemins.php?code='0f78622479428a32a0a4d3deded33b34'  
 
* * * * * php ~/public_html/cron_minute.php 0f78622479428a32a0a4d3deded33b34  
 
0 * * * * php ~/public_html/cron_hour.php 0f78622479428a32a0a4d3deded33b34  
 
0 0 * * * php ~/public_html/cron_day.php 0f78622479428a32a0a4d3deded33b34
Link to comment
Share on other sites

What's at the top of the cron files, to validate the code?

As you aren't passing it in as a code (get) parameter, you should perhaps be using $argv.

Quote
$code = isset($argv) && is_array($argv) && array_key_exists('1', $argv) ? $argv[1] : false;
if (!$code || $code !== '0f78622479428a32a0a4d3deded33b34') {
    exit('If your mother had swallowed... we wouldn\'t be having you try to load this, would we?!');
}

 

 

  • Haha 3
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...