Prefs and Settings - best practices
Richard Gaskin
ambassador at fourthworld.com
Tue May 3 00:34:55 EDT 2005
Chipp Walters wrote:
> And, because stacks are difficult to create (on the fly) from a server,
> I generally only use them if I have to store some sort of binary data
> (logo) with pref files.
What sorts of issues have you found?
This seems to work well on my BSD server:
#!mc
on startup
-- make the stack:
create stack "tt"
-- set some props to verify it's working:
set the destroyStack of stack "tt" to true
set the uTT of stack "tt" to the long seconds
-- put it away:
set the filename of stack "tt" to "data/test.mc"
save stack "tt"
close stack "tt"
-- send something back to the browser:
put "test-- "& the long seconds into tData
put "Content-Type: text/html" & crlf &\
"Content-Length:"&& length(tData) & crlf & crlf
put tData
end startup
--
Richard Gaskin
Fourth World Media Corporation
__________________________________________________
Rev tools and more: http://www.fourthworld.com/rev
More information about the use-livecode
mailing list