note 39450 deleted from function.ftp-rawlist by vincent

From: Date: Fri, 30 Jan 2004 10:19:09 +0000
Subject: note 39450 deleted from function.ftp-rawlist by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-64416@lists.php.net to get a copy of this message
Note Submitter: jsoh@snaphat.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++) { $fname.=" " . $fix[$start]; } } ?> Now names with white spaces will work

« previous php.notes (#64416) next »