note 32050 deleted from function.ftp-rawlist by cmb
| From: | cmb@php.net | Date: | Sun, 04 Aug 2019 08:41:28 +0000 |
| Subject: | note 32050 deleted from function.ftp-rawlist by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211783@lists.php.net to get a copy of this message | ||
Note Submitter: jmv AT jmvware DOT com
----
Seems it doesn't have to be so complicated:
$dirline=ereg_replace(" +",' ',$dirline);
$isdir=0;
if (ereg('^d',$dirline)) $isdir=1;
list($permissions,$num,$owner,$group
,$size,$month,$day,$year_time,$name)=split(' ',$dirline);