You are here: Re: Reading a zip file « All PHP « IT news, forums, messages
Re: Reading a zip file

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]


Удаленная работа для программистов  •  Как заработать на 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

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