I have set up a server on my Windows PC (XAMMP) to try and get my head around using livecode-server.
I am using LCS 6.1
I decided to use .htaccess in the first instance as I am planning to move to an external solution once I have a better understanding of how this all works.
I have put the LCS in the cgi-bin folder. I have set up a folder called livecode-server and put the exe and dll folders into that. I have an .htaccess file in the cgi-bin outside of the livecode-server folder.
-cgi-bin
--.htaccess
--<livecode-server>
---<drivers>
---<externals>
----livecode-server.exe
Now, this seems to work. I put the test.lc script suggested in the livecode tutorials into htdocs(which is equivalent to public-html on XAMMP).
The file with the script reads:
The first part of the script stuff works. But the second put statement doesn't seem to be processed.<html>
<head>
<title>My LiveCode Server Test Page</title>
</head>
<body>
<h1>My LiveCode Server Test Page</h1>
<?lc
put "<p>Hello World! from LiveCode Server</p>"
put "<p>The date is " && the date & "</p>"
?>
</body>
</html>
I get a page that reads
Does anyone have some clues as to what might be going wrong here?My LiveCode Server Test Page
Hello World! from LiveCode Server
" put "
The date is " && the date & "
" ?>
cheers