Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
|
|
FTP Text Directory Listing
Display a directory listing from an FTP server. <HTML>
<HEAD>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=utf-8">
<TITLE>FTP Text Directory Listing</TITLE>
</HEAD>
<BODY>
<%
' Create an FTP object
set ftp = Server.CreateObject("Chilkat.Ftp2")
' Any unlock code begins the 30-day trial
ftp.UnlockComponent "anything"
ftp.Username = "***"
ftp.Password = "***"
ftp.Hostname = "ftp.chilkatsoft.com"
ok = ftp.Connect()
if (ok <> 1) then
Response.Write ftp.LastErrorHtml
else
Response.Write "<pre>"
Response.Write Server.HtmlEncode(ftp.GetTextDirListing("*"))
Response.Write "</pre>"
end if
Set ftp = Nothing
%>
</BODY>
</HTML>
|
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.