What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [Solved]PHP directory listing

[Solved]PHP directory listing
Author: Message:
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: [Half-Solved]PHP directory listing
Try replacing the whole DateCmp() function with...
code:
function DateCmp($a, $b)
{
  if($a[1] == $b[1]) return 0;
  return ($a[1] < $b[1]) ? -1 : 1;
}
That should fix the bug. To get descending order, just add this line...
code:
$Files = array_reverse($Files);
...above the foreach() loop. (Yes, that's the lazy way to do it :p)
02-13-2006 05:13 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Solved]PHP directory listing - by Mike on 02-11-2006 at 08:15 AM
RE: PHP directory listing - by Dempsey on 02-11-2006 at 08:23 AM
RE: PHP directory listing - by Mike on 02-11-2006 at 08:32 AM
RE: PHP directory listing - by Eljay on 02-11-2006 at 08:34 AM
RE: PHP directory listing - by Mike on 02-11-2006 at 08:35 AM
RE: PHP directory listing - by WDZ on 02-11-2006 at 08:38 AM
RE: PHP directory listing - by Eljay on 02-11-2006 at 08:38 AM
RE: PHP directory listing - by Mike on 02-11-2006 at 08:40 AM
RE: PHP directory listing - by Eljay on 02-11-2006 at 08:43 AM
RE: PHP directory listing - by WDZ on 02-11-2006 at 08:49 AM
RE: PHP directory listing - by Mike on 02-11-2006 at 08:57 AM
RE: [Solved]PHP directory listing - by Mike on 02-12-2006 at 04:40 PM
RE: [Half-Solved]PHP directory listing - by WDZ on 02-13-2006 at 05:13 AM
RE: [Half-Solved]PHP directory listing - by Mike on 02-13-2006 at 05:47 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On