Discussion:
ftp_nlist date - time
Ron Piggott
2014-02-14 16:05:38 UTC
Permalink
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
Jim Lucas
2014-02-15 00:39:43 UTC
Permalink
Post by Ron Piggott
-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
Loading...