Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Standard FTP URL format is recognized:
ftp://[user IDassword@]<host name>[ort]/[path name/]
FUNCTION connect2ftp (lcHost, lcUser, lcPassword)
* open access to Inet functions
hOpen = InternetOpen ("vfp", 1, 0, 0, 0)
IF hOpen = 0
? "Unable to get access to WinInet.Dll"
RETURN .F.
ENDIF
*... The first '0' says use the default port, usually 21.
hftpSession = InternetConnect (hOpen, lcHost, nServerPort, lcUser, lcPassword, 1, 0, 0) &&... 1 = ftp protocol
IF hftpSession = 0
* close access to Inet functions and exit
= InternetCloseHandle (hOpen)
? "ftp " + lcHost + " is not available"
RETURN .F.
ELSE
? "Connected to " + lcHost
ENDIF
RETURN .T.
RETURN
ENDPROC