PHP Function To Count NUMBER of Total Files

Started on the old forum in December 2012 · view the original in the archive · old links redirect here

1 reply · 1,737 views · started 13 years ago · 1 min read

2 participants
usama742 Developer · 74 posts #1

i need php function that count number of total files in a directory and all sub directories in it. Please upload the function in a text file,so i download it.

ozziemale31 Lead · 861 posts #2

re

this has already been asked and answered before.please use the search button before posting.

$game = count($list['files/games']); // files/games is the directory you wish to count

$game = count($list['games']);
$ring = count($list['ringtones']);
$wall = count($list['wallpapers']);
$theme= count($list['themes']);
echo $game;  
echo $ring;
echo $wall;
echo $theme;  

External image (may be gone) External image (may be gone)

External image (may be gone)

*****

**Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer.. Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free ***

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close