# Count number of files in dir

**URL:** <https://forum.kirupa.com/t/count-number-of-files-in-dir/63350>\
**Category:** Uncategorized\
**Created:** [September 5, 2004, 7:24pm UTC](https://forum.kirupa.com/t/count-number-of-files-in-dir/63350 "2004-09-05T19:24:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fightalone](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@fightalone](https://forum.kirupa.com/u/fightalone)\
**Post date:** [September 5, 2004, 7:24pm UTC](https://forum.kirupa.com/t/count-number-of-files-in-dir/63350/1 "2004-09-05T19:24:38Z")

</div>

hey folks… ok … basically the title already is my question…

is it possible to count the number of files in a directory given, using flash… and if yes… how??

thx in advance…

yours sincerly

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 7, 2004, 3:21pm UTC](https://forum.kirupa.com/t/count-number-of-files-in-dir/63350/2 "2004-09-07T15:21:13Z")

</div>

It can be done using PHP.  
Try searching the forums, it has been answered before.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 10, 2004, 4:23pm UTC](https://forum.kirupa.com/t/count-number-of-files-in-dir/63350/3 "2004-09-10T16:23:23Z")

</div>

thx… solved the problem anyway… it’s not the most professional way but still… simplky used .txt file with correct file number in it…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 10, 2004, 5:20pm UTC](https://forum.kirupa.com/t/count-number-of-files-in-dir/63350/4 "2004-09-10T17:20:06Z")

</div>

Jubba wrote a real handy script to do this with PHP like Claudio had advised, it maye be easier for you 🙂
