//VGR20092003 Création // function FTPAcceptsAnonymousLogin($host) { $conn_id = @ftp_connect($host,21); if ($conn_id) { $retval=@ftp_login($conn_id,"anonymous", "user@domain.tld"); ftp_close($conn_id); } else $retval=FALSE; return($retval); } // FTPAcceptsAnonymousLogin($host) Boolean Function $host='127.0.0.1'; echo "Host '$host' ".((FTPAcceptsAnonymousLogin($host))?'accepts':'does not accept').' anonymous FTPRun :
'; // NO? $host='ftpperso.free.fr'; echo "Host '$host' ".((FTPAcceptsAnonymousLogin($host))?'accepts':'does not accept').' anonymous FTP
'; // NO $host='ftp.free.fr'; echo "Host '$host' ".((FTPAcceptsAnonymousLogin($host))?'accepts':'does not accept').' anonymous FTP
'; // YES
for European Experts Exchange and Edaìn Works back to list of test scripts
Last update 2020-10-17 12:19:16
Copyright(©)(c) the respective authors. Licensed under the Creative Commons Attribution Share Alike 3.0 License .
These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!