Reply to Re: Reading a zip file

Your name:

Reply:


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)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация