Dir Listing

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
Vahn
-


Joined: 10 Aug 2005
Posts: 51
Location: At my computer

PostPosted: Sun Apr 15, 2007 6:10 am    Post subject: Dir Listing Reply with quote

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 View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Apr 16, 2007 9:09 am    Post subject: Re: Dir Listing Reply with quote

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 View user's profile Send private message Send e-mail
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Wed Apr 18, 2007 12:24 am    Post subject: Reply with quote

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...
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
edimatrix
-


Joined: 23 Sep 2004
Posts: 34
Location: Sydenham, Greater London, UK

PostPosted: Wed Apr 18, 2007 9:10 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Vahn
-


Joined: 10 Aug 2005
Posts: 51
Location: At my computer

PostPosted: Thu Apr 19, 2007 9:11 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group