CGI variables: /usr/local/bin/php test.php --x=hello --y=123

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

My question is the following:
I'm calling a PHP script as CGI over a shell a.e:
/usr/local/bin/php test.php --x=hello  --y=123

How is it possible to access the variables x and y in the script.

is there a special array where these variables are stored?
I tried $_ENV and $_GET but it didn't work...

Thanks for your help

Yours sincerely

Marc Giombetti

Re: CGI variables: /usr/local/bin/php test.php --x=hello --y=123

Marc Giombetti wrote:

Quoted text here. Click to load it




Site Timeline