I am developing a webserver that invokes the PHP binary (via CGI) to process a script.
Here's the problem:
The PHP script isn't picking up the command line parameters. For example, if the client requests path/to/file.php?test=value
, the $_GET
array is empty.
I have tried passing the parameters in an environment variable (QUERY_STRING
), but they still don't show up.
How can I pass query string parameters to a PHP application?