View previous topic :: View next topic |
Author |
Message |
Vahn -
Joined: 10 Aug 2005 Posts: 51 Location: At my computer
|
Posted: Sun Apr 15, 2007 6:10 am Post subject: Dir Listing |
|
|
Ok, Heres Whats Up... I'm planning on Writeing a php DIR Script that can be put into the From Template or From Script Peice of the SP'd Dirctory Listing page, i was wondering What Varibles Would return the different data things as in the File's Name, the Current DIR, The Modifyed date and the Mime and the Size??
Lots of thanks,
Vahn
[Edit] My First post at that was reall hard to understand after reading it a few times
[ReEdit] Is it possible to have PHP work the Template File too? i found the Variables for the things i was after hideing in the Documentation
How to make it Re-order the listing.. such as by name/type/size and on and on...
-Vahn _________________ A ship in the harbor is safe, But thats not what Ships were Built for. ~ John Shedd
Success Comes before Work only in the Dictionary ~ Harvey Mackay
|
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Apr 16, 2007 9:09 am Post subject: Re: Dir Listing |
|
|
Vahn wrote: | How to make it Re-order the listing.. such as by name/type/size and on and on... |
Since you can get the listing data in your PHP variables, you can do anything you want with them (including sorting them according to any criteria - check PHP manual for the functions to do such an operation). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
pkSML -
Joined: 29 May 2006 Posts: 952 Location: Michigan, USA
|
|
Back to top |
|
|
edimatrix -
Joined: 23 Sep 2004 Posts: 34 Location: Sydenham, Greater London, UK
|
Posted: Wed Apr 18, 2007 9:10 am Post subject: |
|
|
pkSML wrote: | Check out http://stephen.calvarybucyrus.org/code/7
It uses the Abyss template system, but you could convert it over to PHP without much difficulty.
It uses Javascript to do the sorting based on size, name... |
Thanks. That was cool. I only have one area on my site from which files can be downloaded, but it looks a lot prettier now!
Regards
Chris |
|
Back to top |
|
|
Vahn -
Joined: 10 Aug 2005 Posts: 51 Location: At my computer
|
Posted: Thu Apr 19, 2007 9:11 am Post subject: |
|
|
Indeed, Thanks for the Help Guys,
I'm not a Fan of Javascript so i've been working on it based on PHP, i might Post Code here when its Done...
-Vahn _________________ A ship in the harbor is safe, But thats not what Ships were Built for. ~ John Shedd
Success Comes before Work only in the Dictionary ~ Harvey Mackay
|
|
Back to top |
|
|
|