Upload Problem

03/21/2011 17:41 marioplayer95#1
Hallo,
hier soll eine Datei hochgeladen werden,
aber es funktioniert nicht.
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ftp.au3>
#include <FTPEx.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("OT - Witze Konto"524305229124)
GUISetIcon("C:\Dokumente und Einstellungen\Stephie\Desktop\0d6bce8f-72b5-40a3-b00f-6980b673fa91-16.ico", -1)
$Input1 GUICtrlCreateInput("Kontonummer eingeben"242424121)
$Input2 GUICtrlCreateInput("Aktueller Kontostand"245624121)
$Button1 GUICtrlCreateButton("Kontostand anzeigen"2722423357)
$Group1 GUICtrlCreateGroup("Aktuelles"16849797)
GUICtrlCreateGroup("", -99, -9911)
$Input3 GUICtrlCreateInput("Neuen Stand eingeben"2413624121)
$Button2 GUICtrlCreateButton("Kontostand aktualisieren"27213623357)
$Group2 GUICtrlCreateGroup("Neues"1611249797)
GUICtrlCreateGroup("", -99, -9911)
$Button3 GUICtrlCreateButton("Update"1622411365)
$Button4 GUICtrlCreateButton("Beenden"14422418565)
$Button5 GUICtrlCreateButton("About"34422413765)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $Button1
            auslesen
()
        Case 
$Button2
    $schreiben 
IniWrite("1.ini"guictrlread($Input1), "Anzahl"guictrlread($Input3))
    
Sleep(2000)
$serv "****************"
$user "****************"
$pass "****************"

$FTP _FTPOpen("AutoIt v3")
$FTPServer _FTPConnect($FTP,$serv,$user,$pass,1)

ProgressOn("Upload","Uploading file [Cancel with F8]")
$x _FTP_UploadProgress($FTPServer"1.ini"'1.ini'"_UpdateParts")
ProgressSet(100,"Return: " $x & @CRLF "Error: " & @error)
Sleep(2000)
ProgressOff()

_FTPClose($FTPServer)
_FTPClose($FTP)

Func _UpdateParts($percent)
ProgressSet($percent,$percent &"%")
If 
_IsPressed("77"Then Return 0
Return bei 1 Fortsetzten
Endfunc
        
Case $Button3
            Run
("update.exe")
        Case 
$Button4
            
Exit
        Case 
$Button5
            Run
("about.exe")
        Case 
$GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd

Func auslesen
()
    
HttpSetUserAgent("Mozilla/5.0 (Windows; U; Windows NT 18.0; de; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15 ( .NET CLR 3.5.30729; .NET4.0E)")
    
InetGet("http://sanctuaryfs.***********/1.ini",@ScriptDir &  "\1.ini"1,1)
    
Sleep(3000)
    
$speicher IniRead("1.ini"guictrlread($Input1) , "Anzahl","")
    
GUICtrlSetData($Input2$speicher)
EndFunc