Dear All,
I am new to PHP. I have one doubt.
How can read the list of files from FTP server. Files should be in ascending order of last modified time.
I request you all how to acheive.
Thanks in advance,
Sankara
Reg : Read files from FTP server
Moderator: General Moderators
-
sankara123
- Forum Newbie
- Posts: 1
- Joined: Wed May 06, 2009 8:24 am
Re: Reg : Read files from FTP server
You can use http://php.net/manual/en/function.scandir.php to get the list of dirs and files.
In a loop use http://php.net/manual/en/function.filectime.php to get change time.
Then simply sort an array.
This is not difficult.
In a loop use http://php.net/manual/en/function.filectime.php to get change time.
Then simply sort an array.
This is not difficult.