FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » readdir lists randomly
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
readdir lists randomly [message #185199] Sat, 08 March 2014 15:01 Go to previous message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma:
Senior Member
From the php manual


if ($handle = opendir('audio/1960')) {
echo "Directory handle: $handle\n";
echo "Entries:\n";

/* This is the correct way to loop over the directory. */
while (false !== ($entry = readdir($handle))) {
echo "$entry\n";
echo "<br>";

}

closedir($handle);
}

Is there a way to list the entries according to the order they are listed
in the directory?
such as
60-001
60-002
60-003


http://mroldies.net/readdir.php
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [CM] Falkvinge: MtGox had custom SSHD written in PHP
Next Topic: Filling an array with random input doesn't quite work
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 16:24:23 GMT 2024

Total time taken to generate the page: 0.03908 seconds