Page 1 of 1

Write code for LC server? - Solved

Posted: Sun Jun 30, 2024 1:37 am
by DR White
Where can I find information on the available server instructions like the one in the code below:
<?lc
put "<p>Hello World! from LiveCode Server</p>"
put "<p>The date is" && the date & "</p>"
put "<p>Janet is the GREATEST</p>"
?>
How would I ever know to use the word "put"?


More specifically, WHERE DO I FIND THE LC SERVER INSTRUCTION SET?

Thanks,

David

Re: Write code for LC server?

Posted: Sun Jun 30, 2024 10:00 am
by Klaus
Hi David,

did you check the LC server lessons from the mothership?
https://lessons.livecode.com/m/4070

Best

Klaus

Re: Write code for LC server?

Posted: Sun Jun 30, 2024 12:08 pm
by DR White
yes, I checked that.

Re: Write code for LC server?

Posted: Sun Jun 30, 2024 12:56 pm
by DR White
IS THE LC SERVER COMPATIBLE WITH HTML 4?

Re: Write code for LC server?

Posted: Sun Jun 30, 2024 2:35 pm
by FourthWorld
DR White wrote:
Sun Jun 30, 2024 12:56 pm
IS THE LC SERVER COMPATIBLE WITH HTML 4?
Web systems have two sides: client and server.

LC Server allows you to use LC on the server side.

HTML 4, 5, and the more recent era where we no longer bother with version numbers, are in the browser in the client side.

Your can use nearly any server system to deliver nearly any client HTML code you want. HTML is just text.

In short, yes.

Re: Write code for LC server?

Posted: Sun Jun 30, 2024 5:48 pm
by DR White
Like what code do I write for:

Save UserInput to file "UserData"

Thanks,

David

Re: Write code for LC server?

Posted: Sun Jun 30, 2024 5:52 pm
by Klaus
Well, since this is LC:

Code: Select all

...
put tUserInput into url("file:UserData")
...
:D

Re: Write code for LC server?

Posted: Sun Jun 30, 2024 6:15 pm
by DR White
Klaus,

Yes that works!
I will play around some more with the direction you have given me.

Thanks,

David