PHP, pass parameters from command line to a PHP script
When calling a PHP script from the command line you can use $argc to find out how many parameters are passed and $argv to access them. For example running the following script: <?php var_dump($argc); //number of arguments passed var_dump($argv); //the arguments passed ?> Like this:- php script.php arg1 arg2 arg3 Will give the following output … Read more