tags:

views:

16

answers:

1

any other solution for getting file modification date using ftp function

A: 

As of PHP 5.1, you can just use filemtime() with a valid ftp://... file path.

Example:

$user = 'peter';
$password = 'secret123';
$mtime = filemtime("ftp://$user:[email protected]/some_file.txt");
too much php
pls give example