## file.php code: ## calling it in bash returns nothing: [/share/Web] # php test.php var=echothis [/share/Web] # php -f test.php var=echothis [/share/Web] # php -f test.php -- var=echothis [/share/Web] # php -f test.php -- ?var=echothis [/share/Web] # ## check contents of $argv by using this code: $count; $i++) { $data = explode('=', $argv[$i]); // explode the value into data $key = $data[0]; $val = $data[1]; echo "{$key}: {$val}\n"; } ?> ## ...returns this: [/share/Web] # php test.php var=echothis array(2) { [0]=> string(8) "test.php" [1]=> string(12) "var=echothis" } [/share/Web] #