Need Help Getting LiveCode Server to Write to a File

Devin Asay devin_asay at byu.edu
Wed Nov 13 16:22:57 EST 2013


On Nov 13, 2013, at 1:13 PM, Gregory Lypny wrote:

> Hi Devin,
> 
> Bless you. I got rid of the curly quotes. How embarrassing. I then created a folder called myFolder, with read and write permissions for everyone, in WebServer/Documents, and it works. The trouble is, the Documents folder is where the HTML pages and LiveCode scripts reside, so I think that is a security concern. Pierre Sahores recommended putting any data folders I create inside WebServer/share/httpd, so I have to figure out the file path to get them there. The folder named share is at the same level as Documents.

Something like this should work then:

put "foo" into url "file:../Share/httpd/myfile.txt"

Just use .. to backtrack up the directory structure from the default folder.

Devin

Devin Asay
Learn to code with LiveCode University
http://university.livecode.com





More information about the use-livecode mailing list