So let's say I have a file on my server called "mine.lc". It's a text
file that contains some LC code and looks like this in a text editor:
<?lc
set the errorMode to "inline"
start using stack "/home/myaccount/www/mystack.livecode"
?>
The "mystack.livecode" file is just a normal stackfile whose stack
script might look like this:
on libraryStack
put the long time & "<br>" & the systemVersion
end libraryStack
So when you go to "http://myserver.com/mine.lc" you'll see the output
from the stack's script in your browser, something like this:
1:09:45 PM
Linux 3.2.45-grsec-2.9.1-r3+
I hope this isn't so elementary it offends you! Mostly I hope it
clarifies the relationship between your .lc file and your stackfile on
the server.
I've built an entire training management system using this approach, so
it will support any level of complexity you need. Just like the desktop,
only different!
Phil Davis
On 5/9/14, 7:22 AM, Mike Bonner wrote:
Nakia, check out this page: http://livecode.com/developers/guides/server/
Specifically the section on using stacks with lc server. Very handy, and
as mentioned above it allows you to create a stack in the livecode ide,
then use it from an lc server script.
On Fri, May 9, 2014 at 2:17 AM, Nakia Brewer <[email protected]>wrote:
Dumb question but I don't get what you mean here ?
I have a LC file and renamed it to a .livecode file but when it opens in
LiveCode there is nothing to edit...
Feeling this is a dumb question that's gonna make me look the goose...
Sent from my iPhone
On 9 May 2014, at 4:19 pm, "Phil Davis" <[email protected]> wrote:
Nakia,
I do what Richard does - put as much code as possible in library stacks,
which I can edit in the IDE and upload them to the server for testing (or
when done). Much of my server code handles requests from LC desktop apps,
so I don't have to deal with HTML pages so much. But when my server scripts
have to return a page, it's always a template with merged data.
Phil
On 5/8/14, 4:57 PM, Nakia Brewer wrote:
Hi,
Just starting to play with some LC Server scripts and was wondering
what text editor people use for the LC file?
Cheers and Happy Friday!
COPYRIGHT / DISCLAIMER: This message and/or including attached files
may contain confidential proprietary or privileged information. If you are
not the intended recipient, you are strictly prohibited from using,
reproducing, disclosing or distributing the information contained in this
email without authorisation from WesTrac. If you have received this message
in error please contact WesTrac on +61 8 9377 9444. We do not accept
liability in connection with computer virus, data corruption, delay,
interruption, unauthorised access or unauthorised amendment. We reserve the
right to monitor all e-mail communications.
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
--
Phil Davis
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
COPYRIGHT / DISCLAIMER: This message and/or including attached files may
contain confidential proprietary or privileged information. If you are not
the intended recipient, you are strictly prohibited from using,
reproducing, disclosing or distributing the information contained in this
email without authorisation from WesTrac. If you have received this message
in error please contact WesTrac on +61 8 9377 9444. We do not accept
liability in connection with computer virus, data corruption, delay,
interruption, unauthorised access or unauthorised amendment. We reserve the
right to monitor all e-mail communications.
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
--
Phil Davis
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode