Re: error on array loop through foreach?

From: Date: Tue, 08 Jul 2003 09:54:17 +0000
Subject: Re: error on array loop through foreach?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-154328@lists.php.net to get a copy of this message
On Mon, 2003-07-07 at 21:31, Micah Montoy wrote: > It did help and I altered the script a bit. It now reads as: [snip] > Now I am receiving the error message of: > > Warning: Invalid argument supplied for foreach() in > c:\inetpub\wwwroot\webpage10\example\u_images\act_load_imgs.php on line 43 > > > Anyone have an idea of what may be causing this? > > thanks Are you 100% sure that $filename is an array when you give it to foreach? Check to make sure that $filename exists and is an array first. That should help. Good luck, Torben -- Torben Wilson <torben@php.net> +1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.com -----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----

« previous php.general (#154328) next »