Page 1 of 1

Possible to update a text file located on my server?

Posted: Mon Jun 23, 2014 3:29 am
by shawnblc
Trying to find an example of this, but can't. What I'm trying to do is to update a file on my server with my stack.

Example:

1. I have a text file on my on-rev account (mileage.txt)
2. Right now the text file would read:

12
2322
4222
7409
10080
14292
17444
20983
24554

3. I'd like to simply use my LC app to update it.

Any help is very much appreciated and may save me a few more hours of headache. Thanks.

Re: Possible to update a text file located on my server?

Posted: Mon Jun 23, 2014 4:09 am
by Simon
Hi Shawn,
I'm not allowed to say "use ftp" because it's very very bad, bad bad security. So don't use ftp.
There is this:
http://forums.livecode.com/viewtopic.php?f=8&t=19144
But that is more complicated because it's made for mobile, it does work with desktop. It will show you some of the steps involved.
CGI stuff (ugh), I'm sure you could write something in liveCode since you are using on-rev.

Simon

Re: Possible to update a text file located on my server?

Posted: Mon Jun 23, 2014 4:13 am
by shawnblc
Simon wrote:Hi Shawn,
I'm not allowed to say "use ftp" because it's very very bad, bad bad security. So don't use ftp.
There is this:
http://forums.livecode.com/viewtopic.php?f=8&t=19144
But that is more complicated because it's made for mobile, it does work with desktop. It will show you some of the steps involved.
CGI stuff (ugh), I'm sure you could write something in liveCode since you are using on-rev.

Simon
Simon, what's your opinion if my splash screen is calling my stack on the server and using FTP? Still bad ?

Re: Possible to update a text file located on my server?

Posted: Mon Jun 23, 2014 4:32 am
by Simon
The problem is that the username and password can be intercepted, then that folder and all it's subfolders are free for them to use. We're all waiting on SFTP.
If it's just personal stuff, and that txt file is all there is, then ok.
Never ever in a product.

Simon

Re: Possible to update a text file located on my server?

Posted: Mon Jun 23, 2014 4:43 am
by shawnblc
Simon wrote:The problem is that the username and password can be intercepted, then that folder and all it's subfolders are free for them to use. We're all waiting on SFTP.
If it's just personal stuff, and that txt file is all there is, then ok.
Never ever in a product.

Simon

Gotcha. Thanks.

Re: Possible to update a text file located on my server?

Posted: Mon Jun 23, 2014 5:22 am
by FourthWorld
shawnblc wrote:Simon, what's your opinion if my splash screen is calling my stack on the server and using FTP? Still bad ?
Does "calling" mean uploading or downloading? If that latter, HTTP is very efficient.

Re: Possible to update a text file located on my server?

Posted: Mon Jun 23, 2014 5:27 am
by shawnblc
FourthWorld wrote:
shawnblc wrote:Simon, what's your opinion if my splash screen is calling my stack on the server and using FTP? Still bad ?
Does "calling" mean uploading or downloading? If that latter, HTTP is very efficient.
Would be calling. Using go stack.