Getting a cgi stack call to work
Mark Smith
mark at maseurope.net
Thu Jan 3 16:25:59 EST 2008
The cgi engines are quite old, (pre 2.7), so stacks in 2.7 format
can't be read by the cgi engines. If you open your stack "test.rev"
and type this in the message box:
set the stackfileVersion to 2.4 ; save stack "Test"
then the stack will be saved in 'legacy' format, and the cgi engine
should be able to cope with it.
Best,
Mark
On 3 Jan 2008, at 21:19, Richard Miller wrote:
> I'm having problems getting the most simple example of a cgi stack
> call to work. This is what I know.
>
> I start with a simple file called "test.cgi":
> ---------------------
> #!Revolution
>
> on startup
> global buffer
> put "hi there" into buffer
> put "Content-Type: text/html" & cr & cr
> put buffer
> end startup
> ---------------------
>
> When I call on this from an html file, it works fine. No problem at
> all.
>
> Next, I change the above "test.cgi" file to this:
> ---------------------
> on startup
> start using "test.rev"
> end startup
> ---------------------
>
> I create a new Rev stack and insert only a stack script as follows:
> ---------------------
> on librarystack
> global buffer
> put "hi there" into buffer
> put "Content-Type: text/html" & cr & cr
> put buffer
> end librarystack
> ---------------------
>
> Every time I try to run this, I get a 500 error: Premature End of
> Script Headers", and it always tells me the error occurs at the
> "start using" line.
>
> All the files and the stack have permissions set to 777 (does it
> matter if it's 777 or 775?)
>
> I'm testing this on an Intel Mac using the built-in server.
>
> I've run out of things to look at. Any ideas?
>
> Thanks.
> Richard Miller
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list