What ordering does the script, which takes all the files in a folder and performs functions on them, take the files? ive thought name, date, but it isnt that. I would like it, if possible to be reverse name order, or name order 😉 either isnt hard.
This is my script:
<?php
$handle=opendir("wishlist/gameplay/");
while ($file = readdir($handle)) {
if ($file != "." && $file != "..") {
include ("wishlist/gameplay/$file");
echo "---CUT OUT as its way too long---";
}
}
closedir($handle);
?>