ASP
 
Documentation ASPHttp
 
Documentation ASPImage
 
Documentation ASPmail
 
Documentation ASPPop3
 
Documentation ASPQmail
 
 
FileUp
 
Persits ASPEmail
 
Persits ASPUpload
 
Persits Xupload
 Autre
 
Installation d'ODBC
 
Real Audio
 
Statistiques web
 
Téléchargement de fichiers exécutables
 Coldfusion MX
 E-mail
 
Ajout de comptes Pop3
 
Configuration de client e-mail
 
Configuration e-mail
 
Email Alias
 
Email forwarding
 
Réglez le port SMTP 587
 
Configurer filtre anti-spam
 Formulaire vers e-mail
 
ASPmail
 
CFmail
 
Script Mailto
 Frontpage
 
Commencer
 
Connexions de base de données
 
Envoi de courrier
 
Publier
 FTP
 Généralités
 
Commencer
 SQL
 
Commencer avec SQL Server
 
Travailler avec SQL Server
Accueil


 Hébergement
 
Hébergement partagé
 
Dédié
 
Colocation
 
Revendeurs
 
Support
 
Trucs & Astuces
 Domaines
 
Enregistrement d'un nouveau domaine
 
Transfert d'un domaine existant
 
Prix
 
Gestion de vos domaines
 
Support
 
Trucs & Astuces
 Support
 
Etat du système
 
FAQ
 
Manuel
 Clients
 
Adaptation des données de contact
 
Campagnes
 
Commandes
 
Domaines
 
Facturation
 
Statistiques sites web
 Au sujet de nous
 
Contactez-nous
 
Nouvelles
 
Offres
 
Portefeuille des clients
 
Bulletin d’information
 
Itinéraire
 
Sitemap
 Services
 
Conception
 
Optimalisation moteurs de recherche
 
e-Mailings
Accueil
 
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.


 

ImprimezAjoutez à vos favorisEnvoyez cette page à un(e) ami(e)


Nom d'utilisateur:
Mot de passe:

login sécurisé



"Je suis particulièrement content de votre service. Vous répondez rapidement et correctement à toutes mes demandes. Grâce à vous je vends de plus en plus de chapeaux aux hommes et aux femmes par Internet. Ce sont surtout les chapeaux de mariée qui marchent bien."
Caroline de Roy van Zuydewijn

 

  
    
   
  
Politique de la vie privée | Conditions générales | Politique d'utilisation admissible  | Sitemap
English | Nederlands | Français
©2003 @iPower N.V. Tous droits réservés
Tous prix en Euro (21% TVA inclus)


Optimalisation dans les moteurs de recherche par Hit Magnet
Développement site web par 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