[PHP] Help with an error I can't find!

2001-11-01 Thread Lic. Carlos A. Triana Torres

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: [EMAIL PROTECTED]
Tel: (53-41) 2 3956
http://www.magon.cu
HamRadio: CO6TB
Locator: FL01GW
ICQ#: 137085816



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Help with an error I can't find!

2001-11-01 Thread Mark Roedel

 -Original Message-
 From: Lic. Carlos A. Triana Torres [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, November 01, 2001 4:25 PM
 To: [EMAIL PROTECTED]
 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 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]