Guest User

Untitled

a guest
Dec 25th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2.  
  3. $servername = "46.4.55.71";
  4. $ftpUser = "Orzlar";
  5. $ftpPass = "~951753";
  6. $file = "/yulin.gmod.eu port 27017/data/RPCP/[chat logs]01-10-11.txt";
  7. $conn_id = ftp_connect($servername) or die("Error connecting to $servername");
  8.  
  9. if(ftp_login($conn_id, $ftpUser, $ftpPass)){
  10. //$dir_handle = @opendir($path/) or die("Error opening $path");
  11.  
  12. while (true) {
  13. ftp_get($conn_id,$file,$file,FTP_BINARY);
  14. echo($file);
  15. }
  16. }
  17.  
  18. ?>
Add Comment
Please, Sign In to add comment