note 39478 deleted from function.ftp-rawlist by crell
| From: | crell@php.net | Date: | Thu, 31 Mar 2022 19:30:42 +0000 |
| Subject: | note 39478 deleted from function.ftp-rawlist by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-217910@lists.php.net to get a copy of this message | ||
Note Submitter: josh at snaphat dot com
----
I fixed jmv AT jmvware DOT com's script:
<?php
$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);
//added the next lines:
$fix=explode(' ',$dirline);
$fixsize=count($fix);
if($fixsize > 8)
{
for($start=9;$start<$fixsize;$start++)
{
$name.=" " . $fix[$start];
}
}
?>