You are here: Does php 4 a function that counts the number of files in a given directory? « All PHP « IT news, forums, messages
Does php 4 a function that counts the number of files in a given directory?

Posted by Frank Wustner on 06/09/05 07:24

It seems such a simple idea, being able to do a file count, but I can't
find a function that does this. I've read several books and online
tutorials, and I can't find an answer to this question anywhere.

As it is, I'm stuck using a while-loop to take a count based on the file
names. This is both crude and will slow down the script a lot when the
directory in question gets really big, as it inevitably will. So if
anyone can help me simplify this with a file-count function, you'll be
my friend for life.

--
Frank W.

 

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

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