Appending Data Via FTP
Gregory Lypny
gregory.lypny at videotron.ca
Thu Aug 30 09:06:29 EDT 2012
Hello Richard,
Thanks for the tip. I think I will switch from the app to LiveCode server and then do all data transfers through a web site using CGIs. Using FTP for now, I can download all of the data, because the files are small, append new data and then upload. The only catch is the odd occasion when a student quits the app before the upload is complete or is otherwise interrupted. That is what I think has resulted in an empty data file appearing on the server.
Gregory
> I think what'll happen there is that the url expression will be
> evaluated first, and you'll wind up with the local variable "it"
> appended and the item on the server untouched.
>
> The most efficient way to do this would be to have a CGI receive the
> data and append it to the file, easily sendable with POST.
>
> Using FTP, I believe the only solution would be to download the file,
> append it, and re-upload it. There may be other options in the FTP
> spec, though, but still I'd consider using the CGI solution first as it
> would be simple and fast.
>
> --
> Richard Gaskin
> Fourth World
More information about the use-livecode
mailing list