# \[PHP\] counting files

**URL:** <https://forum.kirupa.com/t/php-counting-files/131578>\
**Category:** Uncategorized\
**Created:** [December 17, 2004, 1:36am UTC](https://forum.kirupa.com/t/php-counting-files/131578 "2004-12-17T01:36:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joso](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@joso](https://forum.kirupa.com/u/joso)\
**Post date:** [December 17, 2004, 1:36am UTC](https://forum.kirupa.com/t/php-counting-files/131578/1 "2004-12-17T01:36:45Z")

</div>

hey guys…

wondering if someone could help me.

does anyone know if it’s possible to be able to count the number of files in a folder and display he number +1 somewhere on a page

like for instance theres 4 pictures in a folder and someone is adding a new picture…so a message would be like :

you’re image is the **5th** to be added!

…anyone know if that can be done

thanking you :?)
