Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

FTP - How to get the contents of a file according to date?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

FTP - How to get the contents of a file according to date?

Postby raysefo » Tue Jun 04, 2013 4:23 am

Hi,

I am getting files from FTP as follows:
Code: Select all
$homepage = file_get_contents('ftp://usr:pass@111.11.111.111:111/a/b/test-wins_6-40-1010.txt');


I wonder if there is a way to get the files according to the creation date or modification date?

or if it is NOT possible, can I somehow get the file name and get the 6-40-1010 portion as follows?
6-40
1010
raysefo
New php-forum User
New php-forum User
 
Posts: 9
Joined: Mon Jan 17, 2011 10:19 am

Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 10 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron