note 45019 rejected from function.ftp-rawlist by betz
| From: | betz@php.net | Date: | Fri, 05 Nov 2004 01:17:03 +0000 |
| Subject: | note 45019 rejected from function.ftp-rawlist by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80114@lists.php.net to get a copy of this message | ||
Note Submitter: info at wad dot be
----
Fixed the code with a little snippet.
function parse_rawlist($str)
{ $str = str_replace(" ",";",$str);
while (strpos($str,";;")) $str = str_replace(";;",";",$str);
$str = explode(";",$str);
$file["permissions"] = $str[0];
$file["number"] = $str[1];
$file["owner"] = $str[2];
$file["group"] = $str[3];
$file["size"] = $str[4];
$file["timeMonth"] = $str[5];
$file["timeDay"] = $str[6];
$file["timeTime"] = $str[7];
for ($x = 8; $x < sizeof($str); $x++) $file["name"] .= $str[$x];
return $file; }
BUT it turns out that the TIME and DATE returned are in lack of a YEAR -> how can i get the
build-YEAR of a file or directory?