Possible to update a text file located on my server?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

Possible to update a text file located on my server?

Post by shawnblc » Mon Jun 23, 2014 3:29 am

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.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

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

Post by Simon » Mon Jun 23, 2014 4:09 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

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

Post by shawnblc » Mon Jun 23, 2014 4:13 am

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 ?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

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

Post by Simon » Mon Jun 23, 2014 4:32 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

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

Post by shawnblc » Mon Jun 23, 2014 4:43 am

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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10053
Joined: Sat Apr 08, 2006 7:05 am
Contact:

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

Post by FourthWorld » Mon Jun 23, 2014 5:22 am

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

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

Post by shawnblc » Mon Jun 23, 2014 5:27 am

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.

Post Reply