Advertisement
Guest User

Untitled

a guest
Jun 8th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. $ftp_server = "abc";
  2. $ftp_user = "xyz";
  3. $ftp_password = "123";
  4. $path = "/";
  5. if(ftp_login($conn,$ftp_user,$ftp_password))
  6. {
  7. $contents= ftp_nlist($conn, $path);
  8. echo implode("n",$contents) ;
  9.  
  10. }
  11. ?>
  12.  
  13. file1 file2 file3
  14.  
  15. file1
  16. file2
  17. file3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement