modifying data in a text file on my hosting site - need advice

This is the place to discuss the LiveCode Hosting service.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 110
Joined: Fri Mar 09, 2007 9:47 pm

modifying data in a text file on my hosting site - need advice

Post by jsburnett » Mon Jul 31, 2023 12:27 am

Has there been a post or is there a lesson that explains how to put data and or modify that data on a file that is in a folder on my hosting site?
Getting the file or data from the file is easy.
Modifying the file is not so for me.
I am looking to put simple data, that is not a security issue, on a file that can be accessed and modified.
Anyone that can point me to a lesson or post regarding this using livecode would be appreciated.
Thanks in advance.
John

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: modifying data in a text file on my hosting site - need advice

Post by dunbarx » Mon Jul 31, 2023 2:45 am

Hi.

I do not understand. If it is easy to "get the file" it seems then that you have your data "inside" LC itself. For me, that is all that is or ever was necessary to modify it.

Where am I off track?

Craig

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: modifying data in a text file on my hosting site - need advice

Post by dunbarx » Mon Jul 31, 2023 2:47 am

Rereading, are you having issues writing to a distant file once you have processed it?

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: modifying data in a text file on my hosting site - need advice

Post by FourthWorld » Mon Jul 31, 2023 8:18 am

Who has authority to alter the data before upload? Can you tell us a bit more about that workflow?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 110
Joined: Fri Mar 09, 2007 9:47 pm

Re: modifying data in a text file on my hosting site - need advice

Post by jsburnett » Mon Jul 31, 2023 9:49 pm

So sorry to be so vague.
So I plan on putting a file, text file, with data on it that can be accessed and modify.
The text file will be on the livecodehosting site
The users will be me with a browser.
I am able to put the file on the server and access.
I am unable or don't know who to modify it.
I'll repeat - I can put a text file on the server and access it, but can't modify it. Does this make sense.
I put the file on the livecodehosting site by using cPanel. If that helps.

So I put a text file - with the name TestText.txt
I can access the file with Put URL thefilepath.
I can't open/write or modify the file TestText.txt - or don't know how to.

I read once that I need a script, in php I think, that I send the data to and then it writes it to files on the server but this is beyond me and if someone can point me to a lesson that I can go over, that would be great.

I understand how to modify text files on a desktop using URL commands or Open file, write to file and close file. But do these commands work on the hosting server?

Thank you for your patients.
I am an not a professional coder.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: modifying data in a text file on my hosting site - need advice

Post by FourthWorld » Mon Jul 31, 2023 10:36 pm

Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “LiveCode Hosting”