Hi,
I am using a free web host and it's PHP version is 4.3.1, and the scandir() function was introduced in 5. Is there an alternative?
My goal is to count the number of files in a folder and display them, e.g.
<?php
// Code
echo "<b>Total Files in <i>directory</i>:</b> ".count(scandir('directory'))-2;
// Code
?>
only obviously without the scandir() part. Is there an alternative?
Thanks,
Lupus