[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
thttpd: CGI scripts & POST method
- To: http://www.acme.com/~jef
- Subject: thttpd: CGI scripts & POST method
- From: http://dummy.us.eu.org/robert (Robert)
- Date: Thu,  8 Apr 2004 16:41:24 -0700
Hi.
After much hacking, I managed to get php4 mostly working as a CGI under
thttpd.  (The two problems were: (1) php4 requires SCRIPT_FILENAME to be
set and (2) turning on the enable-discard-path option in php4.)
After doing these two things, it mostly works except that, occassionally,
the output from a PHP CGI script isn't always flushed.  (As it turns out,
I only have problem with the POST method.  Don't know if this is
connected or not.)  I tried adding "ob_flush()" and "flush()" (and both!),
but it doesn't fix it.
I have a feeling it has something to do with thttpd and pipes and,
perhaps, timing, but I'm not sure.
Have you ever encountered a problem like this and, if so, where I would
begin to fix the problem?
Thanks.
P.S. Your http://www.acme.com/software/thttpd/repo.html is hilarious!
P.P.S. I didn't realize that you lived in the Bay Area.  Cool.