open_dir() + next_file() +? alphabetical.
I'm trying to read files in alphabetically but when I use this the files are not alphabetical.
PHP Code:
Code:
test |
Re: open_dir() + next_file() +? alphabetical.
Put the list of files in array, sort the array and the use the sorted array.
open_dir / next_file will return the files in order as they appear in the disk (physically) |
Re: open_dir() + next_file() +? alphabetical.
I was hoping to process file's inline. :(. But it can easily be done this way.
|
All times are GMT -4. The time now is 05:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.