[PHP] show how many files

You may integrate php into html by using htaccess commands. This enables php codes to be executed within html files.

htaccess:
Code:
AddHandler application/x-httpd-php .htm .html
 
Okay, thank you! :)

But also, is there a way to show that, but make it take one off? I have a index.html file in there I don't want it to count. But I guess it doesn't really matter.

Just subtract 1 from the figure.

Code:
$directory = '';
print count(glob($directory."/*.*"))[B]-1[/B];
 
Back