You are here: Re: readdir() doesn't maintain order « PHP Programming Language « IT news, forums, messages
Re: readdir() doesn't maintain order

Posted by Gordon Burditt on 09/16/07 17:05

>> str_replace('thumbs/', '', $file);
>
>I put this right above my echo and did get an image. But only one. It
>was the last file in the directory. Also tried to replace $file within
>my output line but failed.
>Maybe my coffee hasn't kicked in.

After you added the str_replace() call, is the echo INSIDE or OUTSIDE
of the foreach() loop?

What do you need to have after foreach() to ensure that the following
TWO statements are inside the loop?

Although you can get advice here, don't expect it to be click-by-click,
keystroke-by-keystroke instructions.

 

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

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