Server - Inline Hello World Example
Posted: Wed Oct 12, 2011 8:03 pm
I copied the text below from a RunRev server (cannot post the URL apparently due to my account lacking permission, so you will have to trust me that I copied/pasted it correctly) and saved as a .html file. When I visit the .html page I only see
<html>
<head></head>
<body>
<?lc
put "<H1>hello world</H1>"
?>
</body>
</html>
on the server instead of displaying what I would expect to be a heading with the text "hello world". If I place the three lines of LiveCode in a file named hello.lc and run off the server I get the appropriate text. What does one have to do in order to get the server to evaluate the block of LiveCode in the .html file?hello world" ?>
<html>
<head></head>
<body>
<?lc
put "<H1>hello world</H1>"
?>
</body>
</html>