I'm attempting to execute a PHP script from the command line in Windows 10 while using XAMPP for localhost.
From the Git terminal application on Windows 10, I'm running the following command:
/c/xampp/php/php.exe /path/to/script/script.php arg1=val1
The script executes correctly, but when I try to do the following:
I get the following error:
PHP Notice: Undefined variable: argv in /path/to/script/script.php on line line-#.
cli, so I should be good, but both
$argc return as undefined.
Does anyone know why? Thanks.