Write code for LC server? - Solved

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
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Write code for LC server? - Solved

Post by DR White » Sun Jun 30, 2024 1:37 am

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
Last edited by DR White on Mon Jul 08, 2024 2:33 am, edited 2 times in total.

Klaus
Posts: 14189
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Write code for LC server?

Post by Klaus » Sun Jun 30, 2024 10:00 am

Hi David,

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

Best

Klaus

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Write code for LC server?

Post by DR White » Sun Jun 30, 2024 12:08 pm

yes, I checked that.

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Write code for LC server?

Post by DR White » Sun Jun 30, 2024 12:56 pm

IS THE LC SERVER COMPATIBLE WITH HTML 4?

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

Re: Write code for LC server?

Post by FourthWorld » Sun Jun 30, 2024 2:35 pm

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

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Write code for LC server?

Post by DR White » Sun Jun 30, 2024 5:48 pm

Like what code do I write for:

Save UserInput to file "UserData"

Thanks,

David

Klaus
Posts: 14189
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Write code for LC server?

Post by Klaus » Sun Jun 30, 2024 5:52 pm

Well, since this is LC:

Code: Select all

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

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Write code for LC server?

Post by DR White » Sun Jun 30, 2024 6:15 pm

Klaus,

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

Thanks,

David

Post Reply