Guest User

Untitled

a guest
Jun 8th, 2018
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. $conn_id = ftp_connect("ftp.testftp.co.uk");
  2. $ftpuser="myusername";
  3. $ftppassword="mypassword";
  4. $login_result = ftp_login($conn_id, $ftpuser, $ftppassword);
  5.  
  6. if ((!$conn_id) || (!$login_result)) {
  7. echo "FTP connection has failed!";
  8. exit;
  9. } else {
  10. echo "Connected To FTP";
  11. echo nl2br ("n");
  12. }
  13.  
  14. $data = file_get_contents('ftp://myusername:mypassword@ftp.testftp.co.uk/test.tsv');
Add Comment
Please, Sign In to add comment