To run a script in command line:
php test.php
or
php -f test.php
To run a script in command line with parameters:
php test.php param1 param2 param3
or
php -f test.php param1 param2 param3
The list of used parameters can be found in:
$_SERVER['argv']
Leave a Reply