Re: ftp_nlist date - time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/14/2014 08:05 AM, Ron Piggott wrote:
At present the output from ftp_nlist resembles:

-rw-r--r-- 1 root root      2511 Feb 14 01:45 file.php

Is it possible to include a full date-time like the Linux command “ls -l --full-time”

-rwxr-xr-x 1 root root   436 2013-10-08 17:29:25.000000000 -0400 file.php

Or is there another way to approach this would give me this result?

Ron

Ron Piggott



www.TheVerseOfTheDay.info


Under the description of usage here:

http://www.php.net/manual/en/function.ftp-nlist.php

it states that you can pass the second argument of ftp_nlist a string that will be passed to what essentially looks like a call to ls. So,

something like this should get you what you are looking for.

$arr = ftp_nlist($connection, ' -l --full-time');

--
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux