Thursday, September 10, 2009

Connect FTP server and get the list of files

$conn = ftp_connect("hosting server Ip address") or die("Could not connect");
ftp_login($conn,"username","pwd");

$from_array = ftp_nlist($conn,"foldername");

ftp_close($conn);

No comments:

Post a Comment