For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > November 2005 > RE: [PHP-WIN] list files in a directory









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-WIN] list files in a directory
Jay Blanchard

2005-11-03, 6:57 pm

[snip]
I got some directories on a web server, these I called with PHP to be
displayed on an HTML page. But I do not get them sorted properly. I want
them to be sorted by name and not by size. Could some one please shed some
light on this.
[/snip]

Get all of the directory or file names into an array and then sort the
array.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com