note 15585 added to function.ftp-nlist

From: Date: Fri, 21 Sep 2001 07:57:58 +0000
Subject: note 15585 added to function.ftp-nlist
Groups: php.notes 
Request: Send a blank email to php-notes+get-18138@lists.php.net to get a copy of this message
for me ftp_nlist doesn't always work... sometimes the call to ftp_nlist takes AGES before it ends (and returns NOTHING)... I therefor recommend you use rawlist in stead of nlist... you can use this function to convert a rawlist array into a nlist-style array function rawlist_2_nlist($list) { $newlist = array(); @reset($list); while (list(,$row) = @each($list)) { $index = strrpos($row, " "); $newlist[] = substr($row, $index+1); } return $newlist; } http://www.php.net/manual/en/function.ftp-nlist.php

« previous php.notes (#18138) next »