File count in a web dir?
7 posts
Page 1 of 1
How do i see how many files there are in a folder on my website, in html/php - not using the default index page thing...?? can anyone help
Hello,
Do you mean count how many files in a folder?.
Do you mean count how many files in a folder?.
Code: Select all
Hope that helps cooll;<?php
$NOF=count(glob("*.*"));
echo "I counted ".$NOF.' Files in this folder';
?>
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
Hello Codenstuff!
I think this is the thing that he asked! Again, I learnt a new thing!
Thanks!
I think this is the thing that he asked! Again, I learnt a new thing!
Thanks!
Thanks so much! thats exactly what i need
Thats me learning something new 
And it helped me with my programn beleve it or not

And it helped me with my programn beleve it or not

<?php
$NOF=count(glob("*.*"));
echo "I counted ".$NOF.' Files in this folder';
?>
were does the file dir go ?
$NOF=count(glob("*.*"));
echo "I counted ".$NOF.' Files in this folder';
?>
were does the file dir go ?
Bound and boom tech,
The Future Of Coding
The Future Of Coding
paralyzer wrote:<?phpThe folder would go where *.* is (in the quotes). I think that is right, ask lewis or codenstuff.
$NOF=count(glob("*.*"));
echo "I counted ".$NOF.' Files in this folder';
?>
were does the file dir go ?
OFF TOPIC MESSAGE TO CnS:
CnS please check your inbox for my messages. It is important for my competition.
Thanks, John

7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023