RE: [PHP] Help with an error I can't find!
| From: | Mark Roedel | Date: | Thu, 01 Nov 2001 21:58:08 +0000 |
| Subject: | RE: [PHP] Help with an error I can't find! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-73187@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Lic. Carlos A. Triana Torres [mailto:triana@yayabo.inf.cu]
> Sent: Thursday, November 01, 2001 4:25 PM
> To: php-general@lists.php.net
> Subject: [PHP] Help with an error I can't find!
>
>
> 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)) {
Is that line inside a function? If so, have a look through
http://php.net/manual/en/language.variables.scope.php
for information on how to access global-scope variables from inside a
function.
---
Mark Roedel | "Blessed is he who has learned to laugh
Systems Programmer | at himself, for he shall never cease
LeTourneau University | to be entertained."
Longview, Texas, USA | -- John Powell