blackhawk Posted April 6, 2023 Posted April 6, 2023 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 Quote
Dayo Posted April 6, 2023 Posted April 6, 2023 you could try */5 * * * * curl http://rumblehighway.com/cron_fivemins.php?code=0f78622479428a32a0a4d3deded33b34 Quote
SRB Posted April 8, 2023 Posted April 8, 2023 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?!'); } 3 Quote
Uridium Posted April 8, 2023 Posted April 8, 2023 try adding /upload/ as that is the directory your game is in example public_html/upload/cron_minute.php?&code=0f78622479428a32a0a4d3deded33b34 Quote
Lithium Posted April 9, 2023 Posted April 9, 2023 On 4/8/2023 at 3:19 PM, SRB said: 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. Haha, good ol' Luke. Some things never change :D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.