SHARE
TWEET

Untitled

a guest May 21st, 2017 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $host = 'xxx';
  3. $port = xxxx;
  4. $user = 'xxx';
  5. $pass = 'xxx';
  6. $verzeichnis = "/scriptfiles/ACC";
  7.  
  8. $ftp = ftp_connect ($host, $port) or die ('FTP Connect funktioniert nicht !');
  9. ftp_login ($ftp, $user, $pass) or die ('FTP Login funktioniert nicht !');
  10.  
  11. $Liste=ftp_nlist($ftp, $verzeichnis);
  12. sort($Liste);
  13.  
  14. foreach($Liste as $Datei)
  15. {
  16. echo '<a ref="'.$verzeichnis."".$Datei.'">'.$Datei.'</a><br>';
  17. }
  18.  
  19. if(ftp_connect)
  20. {
  21. echo "FTP Connect war erfolgreich !";
  22. }
  23. else{
  24. echo "FTP konnte keine Verbindung erstellen !";
  25. }
  26.  
  27. ftp_close ($ftp);
  28. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top