Count number of files on a ftp server


/ Published in: PHP
Save to your folder(s)

Count number of files on a ftp server


Copy this code and paste it in your HTML
  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);

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.