Jump to content

FTPputfile, wont work.


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...