Livecode Server

The LiveCode Server product brings our English like language to the server environment. The server engine is a separate build of the LiveCode engine with specific syntax and functionality that makes it suitable for use in command-line contexts and, in particular, as a CGI processor - livecode.com

The principal difference between the server engine and desktop/mobile engines is that it is able to process scripts from text files. There scripts consist of content to output directly interspersed with LiveCode segments.

As a result you can now mix LiveCode script with HTML, CSS and Javascript to build webpages in much the same way as you would with other web scripting languages:

<html> <head></head> <body> <?lc put "<H1>hello world</H1>" ?> </body> </html>

Notice that the LiveCode script is contained within special tags. Code within these tags is executed as the page loads allowing you to dynamically generate webpage content. The example above outputs the title “hello world”.

The following tags are recognized by LiveCode Server:

<?lc ... LiveCode script ... ?> <?livecode ... LiveCode script ... ?> <?rev ... LiveCode script ... ?>

# File Extensions

As with PHP and other scripting languages HTML/CSS/Javascript/LiveCode scripts are saved as files with a particular file extension. By default, the installation instructions below show you how to configure the server to recognise the .lc file extensions as containing LiveCode script to execute:

file.lc

You can configure your server to accept the file extension(s) of your choice.