Save Stack Problem

Brian Yennie briany at qldlearning.com
Tue Aug 3 11:52:20 CDT 2004


Kenji,

My guess is that you don't have write permission to that directory. 
You'll need to save the stack to another directory, or grant write 
access to the CGI-Executables folder, (the latter being a bit of a 
security no-no).

Hope that helps,
Brian

> Hi,
>
> I am trying to create a card and save stack using CGI script on Mac 
> OSX.
> But I cannot save a stack.
>
> I made a stack "createCd" which had a card and a field,
> and set permissions to 777.
> CGI script was.
>
> #! /Library/webServer/CGI-Executables/revolution
>
> on startup
> 	open stack "createCd"
> 	put the num of cds of this stack &"<br>" after buffer
> 	put the time into fld 1
> 	put fld 1 of cd 1 &"<br>" after buffer	
> 	create cd
> 	put the num of cds of this stack &"<br>" after buffer
> 	save stack "createCd"		
> 	put the result after buffer
> 	close stack "createCd"	
>   	put "Content-Type: text/html" & cr
>  	 put "Content-Length:" && the length of buffer & cr & cr
>  	 put buffer	
> end startup
> 		
>
> Browser showed
> ------------------------------
> 1
> 12:20 PM
> 2
> can't open stack backup file
> ------------------------------
> CGI script was working and made a card, but could not save a stack.
> What is "can't open stack backup file"?
>
> What was wrong?
> Thanks,
>
> --
> Kenji Kojima
> http://www.kenjikojima.com/
>
>
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>



More information about the use-livecode mailing list