|
Posted by chris_fieldhouse@hotmail.com on 01/08/07 19:05
Hi,
Hope Someone can help.
I am migrating a web page originally written for PHP4 to PHP5,
everything is going well, except for one problem which has me stumped!
Part of my PHP script lists all the values passed to it in the URL and
read using the $_GET.
breaking it down into a simple function to demonstrate the problem.
if(sizeof($_GET)) {
while(list($key, $val) = each($HTTP_GET_VARS)) {
echo $key . " : " . $val" . "<br>";
}
}
In PHP4, this lists out all the parameters passed to this page in the
URL.
But in PHP5, nothing. The loop is not entered.
Checking the "sizeof($_GET)" shows that the values are there, and I can
access them using $_GET['<whatever>'] if I know the name of the value,
but I want to be able to show the parameters, both key and value,
passed in the URL.
Can someone help?
Is the $HTTP_GET_VARS not supportted in PHP5, or am I using it wrong?
Any advice would be appreciated.
Thanks.
Chris F.
[Back to original message]
|