Re: [PHP] Re: Show Folder Contents in Form

2002-12-03 Thread Jason Wong
On Wednesday 04 December 2002 09:41, Stephen wrote: > Nevermind, I fixed it. But now I have another problem. One, my select box > has some sub-directories. How cna I filter those out? It is also showing a > bunch of numbers. I included a screenshot of the select box. The following > is the code: >

Re: [PHP] Re: Show Folder Contents in Form

2002-12-03 Thread Stephen
Original Message - From: "Stephen" <[EMAIL PROTECTED]> To: "Nick Eby" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, December 03, 2002 8:28 PM Subject: Re: [PHP] Re: Show Folder Contents in Form > I finally got around

Re: [PHP] Re: Show Folder Contents in Form

2002-12-03 Thread Stephen
ot\checker\admin\add_module.php on line 142 Any ideas why and how to fix it? - Original Message - From: "Nick Eby" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 02, 2002 4:16 PM Subject: [PHP] Re: Show Folder Contents in Form > you could firs

[PHP] Re: Show Folder Contents in Form

2002-12-02 Thread Nick Eby
you could first read the files and their modified-dates into an array; sort the array; and finally build a select widget from the array... function sortByTime($a, $b) { if ($a["time"] == $b["time"]) return 0; return ($a["time"] < $b["time"]) ? -1 : 1; } while (false !== ($file = readdir("