note 38872 deleted from function.ftp-rawlist by didou
| From: | didou@php.net | Date: | Fri, 09 Jan 2004 17:11:49 +0000 |
| Subject: | note 38872 deleted from function.ftp-rawlist by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-63216@lists.php.net to get a copy of this message | ||
Note Submitter:
----
I write a function to get the important data:
<?php
function dateiinfos ($string)
{
$return[0] = substr ($string, 0, 1);
while ($zaeler1 < 12)
{
$zaeler1++;
$monat = date ("M", mktime (0, 0, 0, $zaeler1));
$string = eregi_replace ($monat, "#" . $monat, $string);
}
$pos = strpos ($string, "#") + 1;
$return [1] = trim (substr ($string, $pos, 12));
$pos = $pos + 12;
$return [2] = trim (substr ($string, $pos, strlen ($string) - $pos));
return $return;
}
?>
It returns an Array,
[0] is "-" or "d" if it's "d" the entry is a directory, else
it is a file
[1] is the date of the last change
[2] is the filename