Listing Directory Content Sorted By Size with PHP
Let’s a take a common situation – you have a directory with a big number of files and you need to sort these files by size. Here is the code that will help you to do this in PHP. Quite short and fast. <?php // Path to the directory with big number of files $dir = “../files/”; //… Read More »