PHP – runnig a script in command line
Posted on: October 5, 2010 /
Categories: PHP
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']