3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ftp_server = "fraser.sfu.ca"; // set up basic connection $conn_id = ftp_connect($ftp_server ); // login with username and password $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // get contents of the current directory $contents = ftp_nlist($conn_id, "."); // output $contents var_dump($contents); ftp_close($conn_id);