[KLUG Members] Re: Apache Update

Adam Bultman members@kalamazoolinux.org
Wed, 4 Sep 2002 11:37:07 -0400 (EDT)


It looks as if it simply 'prints' the text that is outputted.  In PHP, if
you do a 'system' call, and that system call returns something (text,
whatever) that gets inserted into the web page you are displaying. In this
case, it looks like it's just kludging something in the code because of
the return values.  You might consider piping the output to a file that'll
get deleted every few dayso r so; that way you don't have to worry about
re-compiling in the event of errors, you just have to check that file.
Don't like the file? Symlink it to /dev/null (but then, I'm a logging
freak).

Check your C programmers manual for exact return values.


On Wed, 4 Sep 2002, John Pesce wrote:

> Sorry guys. In desperation copied the query to a file so I could pipe it
> to stdin from the command line into the cgi.
> It turns out the program I was calling from system() also produce output
> to stdout, that which appears in the %response section before the %stdout
> section in the cgi log.
> When I run it from the command line like this, that line appears in the
> stdout. I would think it would just go right into the stdout of the cgi
> and appear on the html page. Apache apparent is treating it differently.
> If I append >/dev/null to the system call, the cgi works.
>
> what is up with that??
>
>
> On Wed, 4 Sep 2002, John Pesce wrote:
>
> > The output of the cgi logger is below. Everything in the %request
> > and %stdout section looks correct. The %stdout section is a valid page and
> > what I get if I don't include the system() call.
> >
> > The %response section seems to be what apache is complaining about, but
> > that is not the response %stdout is.
> >
> > %response
> > /home/httpd/html/capacity/MCO/cap_data
> > %stdout
> > Content-type: text/plain
> >
> > query=[airport=MCO&active0=on&visibility0=0&windSpeed0=0&windDirection0=0&broken0=-1&active1=on&visibility1=0&windSpeed1=0&windDirection1=0&broken1=-1&visibility2=0&windSpeed2=0&windDirection2=0&broken2=-1&visibility3=0&windSpeed3=0&windDirection3=0&broken3=-1&visibility4=0&windSpeed4=0&windDirection4=0&broken4=-1]
> >
> > Variables:
>
> _______________________________________________
> Members mailing list
> Members@kalamazoolinux.org
> 
>

-- 
Adam Bultman
adam@glaven.org
[ http://www.glaven.org ]