Writing to a field in a cgi stack
Sarah Reichelt
sarah.reichelt at gmail.com
Fri Apr 11 01:14:02 EDT 2008
On Fri, Apr 11, 2008 at 2:57 PM, Jan Schenkel <janschenkel at yahoo.com> wrote:
>
> --- Sarah Reichelt <sarah.reichelt at gmail.com> wrote:
> > Hi All,
> >
> > I'm writing a cgi stack to return some data. It's
> > working fine and
> > grabbing data from text files stored locally. In my
> > browser I can test
> > that I'm getting the correct data back. However I
> > was hoping to be
> > able to use fields in the cgi stack for logging.
> > When a request comes
> > in, I have tried using:
> > put pQuery into fld "DataIn" of stack "WebData"
> > I don't get any error message, "the result" is
> > empty, but nothing
> > appears in the field.
> > There is a field of that name, the stack is named
> > correctly and I know
> > pQuery has some data in it.
> >
> > Am I trying to do something that is impossible from
> > a CGI script? If
> > so, I can just write a separate log file, so it's no
> > big deal, I just
> > wondered.
> >
> > I'm using the Mac OS X engine from Rev 2.9.0-gm-1
> > and I've tried with
> > and without the -ui option.
> >
> > Cheers,
> > Sarah
> >
>
> Apart from the obvious need to 'save' the stack, there
> are two things that can go wrong: does the httpd user
> have write access to the stack file, and is it
> possible that a second cgi script has overwritten the
> field?
>
> A simple database server is probably a better option.
Finally figured this out, thank Jan. While I was testing, I had the
CGI stack open, so it seemed logical that it would be able to update
it's own fields, however I hadn't even thought of the save problem.
I'll go a different route.
Thanks,
Sarah
More information about the use-livecode
mailing list