Writing to a field in a cgi stack

Jan Schenkel janschenkel at yahoo.com
Thu Apr 10 23:57:19 CDT 2008


--- 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.

Jan Schenkel.

Quartam Reports & PDF Library for Revolution
<http://www.quartam.com>

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the use-livecode mailing list