Question with CGI at JaguarPC..
chipp at chipp.com
Wed Feb 20 15:44:55 EST 2008
I'm still trying to get a cgi working at JaguarPC. I've created a folder
mycgi and put the revolution engine in it, etc. I've successfully created a
'helloworld.cgi' which works.
Next I used Jacque's echo.mt script....changed it to echo.cgi and it works
Then, I created a small cgi, that opens a simple stack and reads from the
first card and outputs it. This works fine using my localmachine webserver.
While part of the script rund, the stack never opens using my Jaguar
Here's the script:
put "Content-Type: text/plain" & cr & cr
put "Hello World!"
put the files
put cr & the version
--> RETURNS 2.6.6
if there is a file "BasicComments.rev" then
put cr & "found it"
--> SCRIPTS STOPS EXECUTING HERE
open stack "BasicComments.rev"
put the long name of field 1 of stack "BasicComments.rev" into t
close stack "BasicComments.rev"
put "Can't find it"
--> BELOW NOT EXECUTED
I've checked permissions and everything seems ok. The stack is named in the
files list the cgi renders to text, just it never runs. The capitalization
of the stack seems correct. Is there an issue with Linux Rev 2.6.6 engine?
Any help is much appreciated :-)
More information about the Use-livecode