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

Pages: (2): « First « 1 [ 2 ] Last »
[Solved]PHP directory listing
Author: Message:
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
31 / Male / Flag
Joined: Mar 2003
O.P. RE: PHP directory listing
Thank you WDZ, this seems to work! :)
YouTube closed-captions ripper (also allows you to download videos!)
02-11-2006 08:57 AM
Profile E-Mail PM Web Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
31 / Male / Flag
Joined: Mar 2003
O.P. RE: [Solved]PHP directory listing
Sorry for the double-post, but it seems that Eljay was right on the shoutbox... [Image: msn_sad.gif]

It seems that the code does no sorting at all...
Any way to sort it by date (newest files first)? [Image: msn_tongue.gif]

Thanks [Image: msn_happy.gif]

This post was edited on 02-12-2006 at 06:15 PM by Mike.
YouTube closed-captions ripper (also allows you to download videos!)
02-12-2006 04:40 PM
Profile E-Mail PM Web Find Quote Report
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
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
31 / Male / Flag
Joined: Mar 2003
O.P. RE: [Half-Solved]PHP directory listing
That worked, thanks :)
YouTube closed-captions ripper (also allows you to download videos!)
02-13-2006 05:47 AM
Profile E-Mail PM Web Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


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