Hallo,
hab ne datei, die von nem ftp server auf meinen server kopiert werden sollte.
das versuchte ich bereits mit copy und auch manuell mit fopen, fgets + fputs. doch leider kommt in beiden fällen:
connect() failed: Connection refused in ...
failed to open stream: FTP server reports RETR in ...
mutmaßlich liegt hier ein Fehler im FTP-Wrapper vor, oder er ist schlichtweg nicht vorhanden. Bitte poste Dein Script, sowie die PHP-Version und sieh in der Ausgabe von phpinfo(1);
nach, ob unter "Registered PHP Streams" auch "ftp" angegeben ist.
was ist RETR für ne fehlerquelle und wie bekomm ich die datei trotzdem geladen?
RETRIEVE (RETR)
This command causes the server-DTP to transfer a copy of the
file, specified in the pathname, to the server- or user-DTP
at the other end of the data connection. The status and
contents of the file at the server site shall be unaffected.
Gruß aus Berlin!
eddi
Wer Rechtschreibfehler findet, darf sie behalten.