Hello, I have a "multipart/form-data" submiting to php script that stores data in a mysql database. What I have noticed is that when some fields of the form get filled with lots of data a get a CGI error on the page that the data are submited. This happens regardless if I upload files at the same time via the form. The error is "<!--StartFragment -->The specified CGI application misbehaved by not returning a complete set of HTTP headers.". By a quick search I found some infostating that 2003 server and php have problems with limited output buffer and they suggest changing the variable "output_buffering" in php.ini. The problem is that since I don't have access to the php.ini file, I try to change this variable at runtime using "ini_set('output_buffering','Off');" but the default valuealways comes up (default=4096) nomatter what the value I set. In the code I am using "ob_start();" at the beggining of the script and "ob_end_flush();"at the end. Let me say that the scripts where working fine on the previous host running apache. Anybody having an idea about what the problem might be or on how to change the variable "output_buffering" I would appreciate it. Thanks, pantelis.
In Apache you can run multiple instances of php.ini, and change the configuration of your own php.ini file to suit your needs.Unfortunately that is not the casewith IIS. I am afraid that we cannot change the global php.ini file to disable output_buffering. php recommends the 4KB output buffer setting. Disablingor increasingit globallywould open us up to potential performance issues. mjp --- DiscountASP.NET