Page 1 of 1

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

Posted: Mon Jul 31, 2023 12:27 am
by jsburnett
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

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

Posted: Mon Jul 31, 2023 2:45 am
by dunbarx
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

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

Posted: Mon Jul 31, 2023 2:47 am
by dunbarx
Rereading, are you having issues writing to a distant file once you have processed it?

Craig

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

Posted: Mon Jul 31, 2023 8:18 am
by FourthWorld
Who has authority to alter the data before upload? Can you tell us a bit more about that workflow?

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

Posted: Mon Jul 31, 2023 9:49 pm
by jsburnett
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.

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

Posted: Mon Jul 31, 2023 10:36 pm
by FourthWorld