Re: Help with an error I can't find!
| From: | Liz Fulghum | Date: | Thu, 01 Nov 2001 22:16:04 +0000 |
| Subject: | Re: Help with an error I can't find! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73191@lists.php.net to get a copy of this message | ||
Sounds like $HTTP_POST_VARS is not a valid array (to check do
if(is_array($HTTP_POST_VARS)) { print "YUP"; } else { print "NOPE"; })
Check to make sure that track_vars is turned on in the PHP.ini.
"Lic. Carlos A. Triana Torres" <triana@yayabo.inf.cu> wrote in message
news:005901c16324$1cf252e0$0301a8c0@RED...
> Can some one help fix this error?
>
> Warning: Variable passed to each() is not an array or object in
> /usr/local/.....test.php on line 14
>
> Here is the line:
>
> while(list ($key, $mid) = each ($HTTP_POST_VARS)) {
>
> --
> Lic. Carlos A. Triana Torres.
> Webmaster. Centro de Informacion y Gestion Tecnologica
> Sancti Spiritus
> Email: triana@yayabo.inf.cu
> Tel: (53-41) 2 3956
> http://www.magon.cu
> HamRadio: CO6TB
> Locator: FL01GW
> ICQ#: 137085816
>
>