Trying to delete a file via FTP

Keith (Gulf Breeze Ortho Lab) keith at gulfbreezeortholab.com
Fri Jan 20 05:25:20 EST 2012


Okay, please disregard my previous message... Figured it out... The username 
and password should not be urlencoded:

get libURLftpCommand("DELE 
"&delFile,"ftp.mydomain.com","test at mydomain.com","test")

Cheers!

- Boo

-----Original Message----- 
From: Keith (Gulf Breeze Ortho Lab)
Sent: Friday, January 20, 2012 3:48 AM
To: How to use LiveCode
Subject: Trying to delete a file via FTP

Hi All,

I am playing with FTP and am successfully able to upload a file to my shared 
server... No problem.

However, when I try the following command to delete the file after 
uploading, it does not work:

put "file.txt" into delFile
constant FTPHOST = "ftp.mydomain.com"
put the urlencode of "test at mydomain.com" into FTPUSER
put the urlencode of "test" into FTPPASS
get libURLftpCommand("DELE "&delFile,FTPHOST,FTPUSER,FTPPASS)

Also, when add the following line to my code:

answer libURLftpCommand("HELP",ftp.mydomain.com)

I get the following error message:

421 Can't change directory to /var/ftp/ [/]

What am I missing here? Do I need to include the full path? FYI: The ftp 
account I am accessing is a basic account that I added via my cPanel... (It 
is a single directory on my server... This is not the main FTP account for 
my Web hosting account.)

Thanks!

- Boo
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode 





More information about the use-livecode mailing list