note 99738 added to function.ftp-nlist

From: Date: Thu, 02 Sep 2010 09:41:36 +0000
Subject: note 99738 added to function.ftp-nlist
Groups: php.notes 
Request: Send a blank email to php-notes+get-172265@lists.php.net to get a copy of this message
I experienced that with certain versions of FTP servers, passing additional parameters to ftp_nlist can change the format of the list you get back. Example: <?php $arrFiles = ftp_nlist($connId, '-la ' . $dstDir); ?> While one of my servers returned only the list of filenames (as expected), the other one returned a list consisting not only of filenames, but looking like the output of ftp_rawlist - including rights, filesize, creation date etc. Using the paramter "-a" instead of "-la" changed this, both servers returned only filenames. ---- Server IP: 69.147.83.197 Probable Submitter: 194.232.71.117 ---- Manual Page -- http://www.php.net/manual/en/function.ftp-nlist.php Edit -- https://master.php.net/note/edit/99738 Del: integrated -- https://master.php.net/note/delete/99738/integrated Del: useless -- https://master.php.net/note/delete/99738/useless Del: bad code -- https://master.php.net/note/delete/99738/bad+code Del: spam -- https://master.php.net/note/delete/99738/spam Del: non-english -- https://master.php.net/note/delete/99738/non-english Del: in docs -- https://master.php.net/note/delete/99738/in+docs Del: other reasons-- https://master.php.net/note/delete/99738 Reject -- https://master.php.net/note/reject/99738 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172265) next »