I have a cron job that runs daily (for over a year) and suddenly does not work.
I have a cron job that looks like:
/usr/bin/php -q /home/tcanfarotta22/public_html/test_arg.php low_customer=2 high_customer=200
And then a PHP script that gets the variables like:
parse_str($argv[1], $params);
parse_str($argv[2], $params2);
$low_customer = $params['low_customer'];
$high_customer = $params2['high_customer'];
Now I am getting the following errors:
[18-Jun-2018 10:38:01 America/New_York] PHP Notice: Undefined variable: argv in /home/tcanfarotta22/public_html/test_arg.php on line 5 [18-Jun-2018 10:38:01 America/New_York] PHP Notice: Undefined variable: argv in /home/tcanfarotta22/public_html/test_arg.php on line 6 [18-Jun-2018 10:38:01 America/New_York] PHP Notice: Undefined index: low_customer in /home/tcanfarotta22/public_html/test_arg.php on line 8 [18-Jun-2018 10:38:01 America/New_York] PHP Notice: Undefined index: high_customer in /home/tcanfarotta22/public_html/test_arg.php on line 9
Nothing has changed so I ma not sure what to do. Does anyone know?
