Hi,
I would like some help with creating a script to display the number of wallpapers which are on my site.
To do this I need to know how to do mathematical calculations in php.
1) The first thing which needs to be done is for the script to count the number of files in particular directories and add them together.
2) Then, for each directory, minus 1. So if the total number of files in 26 directories was 626, 26 would be subtracted to give 600.
3) Then I want the number to be divided by 3.
So in this example, 600/3= 200 Wallpapers.
Hope some of you can help me with this.
The main thing is to find a script which can count the number of files in the directory.
Thanks for any help offered.