[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGI scripts & POST method: flushing?



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.)  (Note that I am not running php4 as a module.)

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, but, after examining the code, POSTs are handled specially in thttpd.)  I tried adding "ob_flush()" and "flush()" (and both!) to my PHP script, 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.

I was running 2.23beta1, but I upgraded to 2.25b and this problem still exists.

Has anyone ever encountered a problem like this and, if so, where I would begin to fix the problem?

Thanks.






Why do you want this page removed?