Posted By

Sadeveloper on 12/26/13


Tagged

files FTPcount


Versions (?)

Count number of files on a ftp server


 / Published in: PHP
 

URL: http://www.softafzar.net/thread1506.html/

Count number of files on a ftp server

  1. /* php code */
  2. $ftp = ftp_connect("host");
  3. ftp_login($ftp, "usr", "pwd");
  4. echo count(ftp_nlist($ftp, 'uploads/'));
  5. ftp_close($ftp);

Report this snippet  

You need to login to post a comment.