Sign in to follow this  
Followers 0
Pipeline

FTPputfile, wont work.

3 posts in this topic

#1 ·  Posted (edited)

So...

I got a script which has to put a .htm file on the server.

but it doesn't seem to work.

this is the code( I know I included a FTP server + ID + PW, but I made that one to test it, and to show it to you guys, there is nothing on there.):

$__ftp_hWinInetDll = DllOpen('wininet.dll')
        If $__ftp_hWinInetDll == -1 Then
            ConsoleWrite("-- ERROR FROM FTP.au3: Unable to open WinInet.dll" & @LF)
            $__ftp_hWinInetDll = 'wininet.dll'
        EndIf
        $username = "jorsec1"
        $pass = "5171405"
        $Open = _FTPOpen("myftp")
        EndIf
        $Conn = _FTPConnect($Open, "jorsec1@login562.freehostia.com", $username, $pass)
        $Ftpp = _FtpPutFile($Conn, @ScriptDir & "/index.htm", "Index.htm")
                $Close = _FTPClose($Open)

So anyone knows whats wrong with this?

I did include FTP.au3... so don't say I forgot that xD

Hope anyone can help me Posted Image

this... is madness....

Madness??

Posted Image

~Pipeline

Edited by Pipeline

Share this post


Link to post
Share on other sites



Actually its still not working for me

It still does not upload the file to the server :S

I set a @error and everytime it gets activated.

Anymore idea's?

~Pipeline

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0