I need to execute a php file with parameters through shell.
here is how I would run the php file:
php -q htdocs/file.php
test.php:
Shell:
$ php -q test.php foo bar Array ( [0] => test.php [1] => foo [2] => bar )