Home | Registrieren | Einloggen | Suchen | Aktuelles


Forum » PHP & MySQL » Ftp verbindung zum Server Prüfen Antworten
Ftp verbindung zum Server Prüfen

lugau45
Otto-Normal-Poster


Beiträge: 64


hallo,

ich habe da ein script gebastelt das soll mir ausgeben ob der ftp server online oder offline ist. nun geht das nicht so richtig. ist der ftp server an klappt es erscheint FTP Server online mache ich ihn aus kommt bichts das script lädt und lädt und lädt.

1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20:
 
 // ftp connect
 
   $conn_id = ftp_connect("domain.dyndns.org");

// Open a session to an external ftp site
$login_result = ftp_login ($conn_id, "test", "pass");

// Check open
if ((!$conn_id) || (!$login_result)) {
       echo "FTP Sever <font color=\"BB0000\">offline</font>";
	    die;
		ftp_quit($conn_id);
		exit;
   } else {
       echo "FTP Server <font color=\"00BB00\">online</font>";
	    ftp_quit($conn_id);
   }
  


was kann denn da falsch sein?

---
http://www.marco-doki.de.vu

  Profil   Editieren   Zitieren
 

Antworten
Nach oben