Posted by lorento on 07/04/06 03:49
Check your PHP version. Maybe you run at different server.
foreach() history :
PHP 4 : foreach() introduced
PHP 5 : foreach() posible to iterate object
--
http://www.mastervb.net
Pankaj wrote:
> I have a code that displays images from a zip file. When I run the code
> on one server, it gives the desired results but when i try to change
> the server, I get an error message.
>
> Warning: Invalid argument supplied for foreach() in
> /home/httpd/vhosts/carsnmore.com/httpdocs/SiG.php on line 226
>
> I have tried to run this code on 4 different servers and it works
> perfectly on all servers but does not work on the one on which it is
> supposed to run. Once again, here's the line that gives the error
>
>
> foreach ($archiveImages['dir'][$folderIndex]['Images'] as $imgIndex =>
> $imgTitle)
Navigation:
[Reply to this message]
|