Skip to content
Advertisement

Tag: dir

listing files in folder showing index.php

I have this code, but it is showing the index.php itself How can I filter *.php files? Also is there a way to sort them by modification or creation time? Answer Here’s another that uses ksort or krsort functions (tested). (See comments in code.)

Advertisement