IIS7 PHP for instant output

Source: Internet
Author: User

The PHP program is not able to display the results gradually in the default settings of IIS. But in the FTP space can be instantaneous output, research for a long time, finally found a solution.
The approach is as follows:

First of all:

Open file C:\Windows\System32\inetsrv\config\applicationHost.config, note If you are a 64-bit system, this file must be opened with 64-bit editing software, 32-bit software open will prompt the file does not exist , you can use the system's own Notepad notepad to open it. Find " > This paragraph, add the following light background code on the line, that is, PHP this handler inside add responsebufferlimit= "0".

<add name= "php_via_fastcgi" path= "*.php" verb= "*" modules= "fastcgimodule" scriptprocessor= " E:\PHPCMS\PHP\php-cgi.exe " resourcetype=" either " responsebufferlimit= "0" />


Secondly:

Put the output_buffering inside the php.ini = Off.

:



ok, running, successful implementation of the immediate output.


Original address: http://blog.csdn.net/aerchi/article/details/38397469
Author Address: www.aerchi.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.