note 15585 deleted from function.ftp-nlist by didou

From: Date: Sun, 16 Jan 2005 05:43:28 +0000
Subject: note 15585 deleted from function.ftp-nlist by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-83383@lists.php.net to get a copy of this message
Note Submitter: ---- 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; }

« previous php.notes (#83383) next »