Hi
My knowledge of php is regrettably poor but I need to call a third-party
php script from within a bash cgi script (don't ask why, it's a long
story). Now normally (with eg perl-cgi) to do this I need to set
QUERY_STRING and REQUEST_METHOD appropriately; however with php this
doesn't work, the $_REQUEST array is empty.
$ export QUERY_STRING='t est=1&wibble=2' ;export REQUEST_METHOD= GET;php -n
-r 'print_r($_REQU EST);'
Array
(
)
$
What do I need to set in order for the _REQUEST variable to be populated
correctly?
Thanks!
Geoff
My knowledge of php is regrettably poor but I need to call a third-party
php script from within a bash cgi script (don't ask why, it's a long
story). Now normally (with eg perl-cgi) to do this I need to set
QUERY_STRING and REQUEST_METHOD appropriately; however with php this
doesn't work, the $_REQUEST array is empty.
$ export QUERY_STRING='t est=1&wibble=2' ;export REQUEST_METHOD= GET;php -n
-r 'print_r($_REQU EST);'
Array
(
)
$
What do I need to set in order for the _REQUEST variable to be populated
correctly?
Thanks!
Geoff
Comment