[Solved]PHP directory listing - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: [Solved]PHP directory listing (/showthread.php?tid=55725) [Solved]PHP directory listing by Mike on 02-11-2006 at 08:15 AM
Hello. RE: PHP directory listing by Dempsey on 02-11-2006 at 08:23 AM Well if its not your server, you probably don't have root access, thats why it doesn't work. Try listing a folder you have access to and see if that works. RE: PHP directory listing by Mike on 02-11-2006 at 08:32 AM
Well, I'm hosted by dt... RE: PHP directory listing by Eljay on 02-11-2006 at 08:34 AM
quote: if its current directory you want to list its ./ not / RE: PHP directory listing by Mike on 02-11-2006 at 08:35 AM
quote:Just tried, still empty page RE: PHP directory listing by WDZ on 02-11-2006 at 08:38 AM Well, that code alone doesn't output anything... you need to handle that yourself... RE: PHP directory listing by Eljay on 02-11-2006 at 08:38 AM
quote: tried print_r($Files); ¬¬ that code is just to get the array edit: WDZ RE: PHP directory listing by Mike on 02-11-2006 at 08:40 AM
Now i get an output, but it looks weird quote: I guess I will have to loop through the arrays and echo(); them? RE: PHP directory listing by Eljay on 02-11-2006 at 08:43 AM
quote: yes RE: PHP directory listing by WDZ on 02-11-2006 at 08:49 AM
Some example code... code: RE: PHP directory listing by Mike on 02-11-2006 at 08:57 AM Thank you WDZ, this seems to work! RE: [Solved]PHP directory listing by Mike on 02-12-2006 at 04:40 PM
Sorry for the double-post, but it seems that Eljay was right on the shoutbox... RE: [Half-Solved]PHP directory listing by WDZ on 02-13-2006 at 05:13 AM
Try replacing the whole DateCmp() function with... code:That should fix the bug. To get descending order, just add this line... code:...above the foreach() loop. (Yes, that's the lazy way to do it ) RE: [Half-Solved]PHP directory listing by Mike on 02-13-2006 at 05:47 AM That worked, thanks |