ASP
 
ASPHttp documentation
 
ASPImage documentation
 
ASPmail documentation
 
ASPPop3 documentation
 
ASPQmail documentation
 
 
FileUp
 
Persits ASPEmail
 
Persits ASPUpload
 
Persits Xupload
 Coldfusion MX
 E-mail
 
Adding Pop3 accounts
 
Configure SMTP port 587
 
Configuring E-mail client
 
Email Alias
 
E-mail configuration
 
Email forwarding
 
Configure anti-spam Filter
 Form to e-mail
 
ASPmail
 
CFmail
 
Mailto script
 Frontpage
 
Database connections
 
Publishing
 
Sending Mail
 
Starting
 FTP
 General
 
Start
 Other
 
Downloading Executables
 
ODBC Set-up
 
Real Audio
 
Web statistics
 SQL
 
Starting with SQL Server
 
Working with SQL Server
Home


 Hosting
 
Shared hosting
 
Dedicated
 
Colocation
 
Resellers
 
Support
 
Tips & Tricks
 Domains
 
Registering a new domain
 
Transferring an existing domain
 
Prices
 
Managing your domains
 
Support
 
Tips & Tricks
 Support
 
FAQ
 
Manual
 
System status
 Customers
 
Campagnes
 
Changing contact data
 
Domains
 
Invoicing
 
Orders
 
Website statistics
 About us
 
Contact us
 
Jobs
 
News
 
Portfolio
 
Newsletter
 
Route description
 
Sitemap
 Other Services
 
Web design
 
Search engine optimisation
 
e-Mailings
Home
 
DynuFTP 2.0

Use this powerful yet easy to use FTP component to perform all your uploads, downloads and other ftp commands all from within your ASP pages. Get directory listings and perform literally any command on the remote server! This component allows complete control over many transfer options such as binary/ascii, passive mode (required by some firewalls) etc.

Sample ASP code
set myftp = Server.CreateObject("DynuFTP.Functions")

REM the below line will download the file dynuftp.zip from ftp.dynu.com.
if myftp.ExpressGetFile("ftp.dynu.com", "dynuftp.zip") then
Response.Write("Dowloaded file!")
end if

REM the below line will connect to the server ftp.dynu.com.
if myftp.connect("ftp.dynu.com") then
Response.Write("Connected to ftp site ftp.dynu.com")
end if

REM the below line will get the current directory as a string.
Response.Write(myftp.GetCurrentDirectory())

REM the below line will execute the command NOOP on the server.
Response.Write(myftp.ExecuteCommand("NOOP"))

set myftp = nothing

DynuFTP component has 9 methods and 1 property. Listed below is the syntax for their use.

  • ExpressGetFile(server - string, remotefile - string, [username - string], [password - string], [port - integer], [passive - BOOL], [localfilename - string], [transfertype - string], [failifexists - BOOL])
    Downloads file from FTP server with just one command.
    Returns TRUE if file is downloaded successfully, else it will return FALSE.

  • ExpressPutFile(server - string, localfile - string, [username - string], [password - string], [port - integer], [passive - BOOL], [remotefilename - string], [transfertype - string], [failifexists - BOOL])
    Uploads file to FTP server with just one command.
    Returns TRUE if file is uploaded successfully, else it will return FALSE.

  • Connect(host - string, [port - int], [username - string], [password -string], [acct - string], [fwhost - string], [fwusername - string], [fwpassword - string], [fwport - integer], [logontype - integer], [transfertype - string], [passive - Boolean])
    Connects to an ftp server.
    Returns TRUE if connection is established successfully, else it will return FALSE.
    This component supports 9 different login sequences. Below are the valid logontypes to user with firewalls
    • 0 - None
    • 1 - Site hostname
    • 2 - User after logon
    • 3 - Proxy Open
    • 4 - Transparent
    • 5 - User with no logon
    • 6 - User FireID@RemoteHost
    • 7 - User remoteID@remoteHost fireID
    • 8 - User remoteID@fireID@remoteHost
    Below are the two valid transfer types(string).
    • "binary"
    • "ascii"

  • ExecuteCommand(command - string)
    Executes the given command on the FTP server.
    Returns the result of the command as a string.
  • GetCurrentDirectory()
    Returns the current directory on the FTP server as a string.
  • SetCurrentDirectory(directory - string)
    Sets the current directory on the FTP server to the given directory.
    Returns TRUE if successful, else it will return false.
  • GetFile(remotefile - string, [localfile - string], [passive - Boolean], [transfertype - string])
    Downloads the given remotefile.
    Returns true if successful, else it will return FALSE.
  • PutFile(localfile - string, [remotefile - string], [passive - Boolean], [transfertype - string])
    Uploads the given localfile on to FTP server.
    Returns true if successful, else it will return FALSE.
  • Close()
    Disconnects from the FTP server if connected.
    This method does not return anything.
  • ReturnMessage
    This is a get property. This will contain the last message as a string returned by the FTP server after performing any action on the server. NOTE: This property is get only and cannot be set.

Click here to view sample code.


 

PrintAdd to favoritesSend this page to a friend




"Fantastic! I am very happy with this solution. Just what I needed!"
Michiel Hendriks

 

  
    
   
  
Privacy Policy | General Conditions | Acceptable use policy | Sitemap
English | Nederlands | Français
©2003 @iPower N.V. All rights reserved
All prices in Euro (incl. 21% VAT)


Search engine optimisation by Hit Magnet
Website development by Technologic
@iPower N.V.
Toekomstlaan 16 i
2900 Schoten, Belgium
Tel: +32(0)3-641.66.80
Fax: +32(0)3-641.66.89
E-mail: info@ipower.be
BTW/TVA: BE 862.692.858