|
Posted by Pankaj on 07/04/06 07:29
The sites on which code runs perfectly use PHP version 4.1.2 and
4.3.11. However, the one on which this doesnt work uses 4.3.2. So I
guess that should not be the problem.
lorento wrote:
> 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]
|