hey,

given a directory structure like

$DOCUMENT_ROOT/2001/03/02     (where 02 is a file in dir 03/

which obviously represents a date, i would like to implement a page
such as latest.php, which will go to $DOCUMENT_ROOT, list all the
directories, sort them numerically, choose the largest, chdir, repeat,
chdir, and obtain the name of the file that is associated with the
"highest" number.

this is related to an announcement page, where a central page
display.php handles the date directory tree. sometimes, there are
releases on consecutive days, but it may happen that an announcement
is a couple of days back, in which case i want latest.php to find it
automatically and dynamically.

any hints?

martin

[greetings from the heart of the sun]# echo madduck@!#:1:s@\@@@.net
-- 
"when I was a boy I was told
 that anybody could become president.
 now i'm beginning to believe it."
                                                    -- clarence darrow

-- 
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]

Reply via email to