PHP flush stopped flushing in IIS7.5

前端 未结 7 1402
庸人自扰
庸人自扰 2020-12-06 07:06

We have been using php flush to \"blank\" a page immediately as soon as it is clicked, and also to send the navigation and main components of the page so that a page appears

7条回答
  •  [愿得一人]
    2020-12-06 07:51

    You must set the ResponseBufferLimit value of the desired handler to a number low enough to actually flush. I recommend using 0 since it prevents IIS from doing anything but passing along what you send it from your PHP script. You can use the following command line to set the ResponseBufferLimit to 0 for the php handler (just change “NAME” to the name of the handler you want to update e.g. PHP53_via_FastCGI):

    appcmd.exe set config /section:handlers "/[name='NAME'].ResponseBufferLimit:0"
    

    Alternatively, you can edit the applicationHost.config directly and add a ResponseBufferLimit attribute the XML element.

提交回复
热议问题