FTP-Problem

  • Nabend,

    Ich sitz momentan an einem kleinen Programm. Sinn ist eig egal ;)

    [autoit]

    $protokollhtml = @SCRIPTDIR&"\"&$protokoll&".html"
    $remotefile = "\Chatlogs\"&$protokoll&".html"
    FileDelete($protokollhtml)
    FileWriteLine($protokollhtml, $array)
    _FTP_FilePut($connection, $protokollhtml, $remotefile)

    [/autoit]

    Verbinden mit dem Server tu ich richtig, die Quelldatei liegt im $protokollhtml drin (wird vorher mit der Variable auch erstellt). $remotfile ist eig auf dem FTP Server der Ordner Chatlogs, wo die Datei reinsoll.
    Aber es funzt net. Die Datei wird einfach nicht erstellt :(

    Hilfe plz :)

    Schrubber

  • Probier das mal aus:

    [autoit]

    $protokollhtml = @SCRIPTDIR&"\"&$protokoll&".html"
    $remotefile = "/Chatlogs/"&$protokoll&".html"
    FileDelete($protokollhtml)
    FileWriteLine($protokollhtml, $array)
    _FTP_FilePut($connection, $protokollhtml, $remotefile)

    [/autoit]

    Falsche Striche^^
    FTP arbeitet mit "/" und Windows mit "\"

    Spoiler anzeigen

    Grundkenntnisse in: C++, JavaScript
    Sehr gute Kenntnisse: PHP, JAVA, C und näturlich AutoIt


    Klaviatur, Anhang UDF, GDI+ Mühle

    Zitat

    "Wenn einen um 20h der Pizzadienst anruft und fragt, ob man's nur vergessen hat und ob man das gleiche
    möchte wie immer -- dann sollte man sein Bestellverhalten evtl überdenken"