note 38872 added to function.ftp-rawlist

From: Date: Fri, 09 Jan 2004 17:08:35 +0000
Subject: note 38872 added to function.ftp-rawlist
Groups: php.notes 
Request: Send a blank email to php-notes+get-63214@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.ftp-rawlist.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38872 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38872&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38872&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#63214) next »