Re: url hostname
Posted: Tue May 05, 2015 2:16 pm
You are passing command line arguments, it is not a post or get. I assumed you were calling another server by URL.
Use $argv:
http://php.net/manual/en/reserved.variables.argv.php
http://php.net/manual/en/function.getopt.php
Use $argv:
Code: Select all
var_dump($argv)http://php.net/manual/en/function.getopt.php