Re: [PHP] Directory Listing with php on unix boxes

2003-01-08 Thread Krzysztof Dziekiewicz
 Here is where I'm running into some problems.  I need the file listing to be
 sorted as if I were performing an 'ls -lt' listing on the server itself.

I do not think opendir() or readdir() quarantees any sort. You where
lucky rather you got dirs in the time order. You should use
filemtime() or something like this to sort dirs.

-- 
Krzysztof Dziekiewicz


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Directory Listing with PHP

2001-01-31 Thread Andrew Braund

You might like to try WebExplorer, may do what you want.
http://suneworld.com/programs/

hth
Regards
Andrew Braund

 -Original Message-
 From: Chris Aitken [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 1 February 2001 15:35
 To: PHP User Group
 Subject: [PHP] Directory Listing with PHP
 
 
 
 
 (Damn I hate it when I forget to change the subject)
 
 
 Does anyone have, or know of a script which simulates what Apache gives out 
 when it shows the entire contents of a directory ?
 
 I find it very handy to use the directory listing of say graphics 
 directories and the like, but I dont want others looking into them.
 
 What I thought would be a good system is to have an index.php file which 
 asks for a password. If the password is accepted, it shoots them off to a 
 php script which displays the contents of the DIR just as apache would.
 
 This way I can bar viewing of the directories contents, only viewable to 
 the owners of the password.
 
 
 Ive seen a couple of scripts which claim to show the directory listing, but 
 none of them seem to work any good with a decent layout and amount of file 
 info. So im looking for a script which can display the listing properly. 
 Does one exist, or am I just relieving myself into the wind ?
 
 
 Thanks
 
 Chris
 
 --
Chris Aitken - Webmaster/Database Designer - IDEAL Internet
 email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 4628 8890
  
 
Unix -- because a computer's a terrible thing to waste!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]