note 70447 added to function.ftp-rawlist
| From: | ari at bs-inc dot com | Date: | Tue, 17 Oct 2006 08:24:24 +0000 |
| Subject: | note 70447 added to function.ftp-rawlist | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-118601@lists.php.net to get a copy of this message | ||
This is a little cleaner:
function parse_rawlist( $array )
{
foreach($array as $curraw)
{
$struc = array();
$current = preg_split("/[\s]+/",$curraw,9);
$struc['perms'] = $current[0];
$struc['number'] = $current[1];
$struc['owner'] = $current[2];
$struc['group'] = $current[3];
$struc['size'] = $current[4];
$struc['month'] = $current[5];
$struc['day'] = $current[6];
$struc['time'] = $current[7];
$struc['year'] = $current[8];
$struc['raw'] = $curraw;
$structure[$struc['name']] = $struc;
}
return $structure;
}
----
Server IP: 64.71.164.2
Probable Submitter: 70.162.10.209
----
Manual Page -- http://www.php.net/manual/en/function.ftp-rawlist.php
Edit -- https://master.php.net/note/edit/70447
Del: integrated -- https://master.php.net/note/delete/70447/integrated
Del: useless -- https://master.php.net/note/delete/70447/useless
Del: bad code -- https://master.php.net/note/delete/70447/bad+code
Del: spam -- https://master.php.net/note/delete/70447/spam
Del: non-english -- https://master.php.net/note/delete/70447/non-english
Del: in docs -- https://master.php.net/note/delete/70447/in+docs
Del: other reasons-- https://master.php.net/note/delete/70447
Reject -- https://master.php.net/note/reject/70447
Search -- https://master.php.net/manage/user-notes.php