PHP command line arguments
In php, the command line arguments are stored in $argv. The first argument is always the file name of the php script, the second and the following are arguments you can pass into the php script. For example, this piece of code will print all the command line arguments when you run it. /home/getCommandLineArgs.js
<?php for($i=0; $i<count($argv); $i++) echo $argv[$i]."\n";
Search within Codexpedia
Custom Search
Search the entire web
Custom Search
Related Posts