I am using the PHP script below to test FTP connections. Currently it is printing an array of the files, if it successfully connects.
How can I get it to also display
Simply do a check if ftp_nlist() is an array.
ftp_nlist()
Like:
echo is_array(ftp_nlist($con, ".")) ? 'Connected!' : 'not Connected! :(';
References: