Jump to content
Sign in to follow this  
corgano

FTP upload file to website

Recommended Posts

corgano

I have a website on hosthelpers and I cannot figure how to upload files to my website useing any of the FTP functions out there.

I have looked around the fourm and could not find an example that I could make work. If anyone has done this help would be greatly appreciated.


0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Share this post


Link to post
Share on other sites
daniel02

Hi,

have you tried ftp.au3?

ftp.au3

#Include <FTP.au3>

Global Const $Host = ''
Global Const $Login = ''
Global Const $Password = ''

_FTP_Startup()
$hFtp = _FTP_Open('MyFtp')
$hSession = _FTP_Connect($hFtp, $Host, $Login, $Password)
_FTP_PutFile($hSession, 'test.txt', 'test.txt')
_FTP_Disconnect($hSession)
_FTP_Close($hFtp)
_FTP_Shutdown()

Cheers

Daniel

Share this post


Link to post
Share on other sites
corgano

Hi,

have you tried ftp.au3?

Yes. I could not get it to work, though. Does anyone have a host helpers account or could someone make a free one to test this? Everything I tried ended in failure.


0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Share this post


Link to post
Share on other sites
corgano

Yes. I could not get it to work, though. Does anyone have a host helpers account or could someone make a free one to test this? Everything I tried ended in failure.

would host (Global Const $Host = '') be:

ftp.corgano.co.cc

ftp.gamma.freecp.net

or ftp.hosthelpers.com

??


0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.