Sitemap Sitemap  |  Contact Us Contact Us  |  Clients Clients
   CreateFTPConnection
  Home |  WebHare Lite |  Downloads |  HareScript |  Websites/CMS |  Applications
Search for:  in: 
HareScript
Internet connectivity
 
File transfer (FTP)
Hypertext transfer (HTTP)
IMAP library
MIME and RFC822
POP3 email
Simple Mail Transfer Protocol (SMTP)
TCP/IP connections
CreateFTPConnection
  This function will try to login to an ftp server
 
Library wh::internet/ftp.whlib
 
Syntax PUBLIC INTEGER FUNCTION CreateFTPConnection (STRING serverip,INTEGER serverport,STRING username,STRING passwd,BOOLEAN passive,INTEGER securitylevel)
 
Parameters
serverip String containing the ip of the ftp server
serverport Integer of the port of the ftp server
username String of the username to connect with
passwd String of the password to use
passive Data connection type
securitylevel Security level (0: no secure connection, 1: secure command channel if available, 2: secure command channel only)
 
Returns Integer with the connectionid (if < 0 an error occurred)
Return value -1 = Failed to create a socket
Return value -2 = Failed to connect to the server
Return value -3 = Failed to receive welcome message
Return value -4 = Wrong username
Return value -5 = Wrong password
 
 
In library 'ftp'
ChangeFTPDirectory
CloseFTPConnection
CreateFTPConnection
CreateFTPDirectory
DeleteFTPDirectory
DeleteFTPFile
DestroyFTPConnection
GetCurrentFTPDirectory
GetFTPError
GetFTPFile
ReadFTPDirectory
RenameFTPFile
StoreFTPFile
 
Top To top of page