开发者 | moxypark |
---|---|
更新时间 | 2009年10月12日 04:50 |
PHP版本: | 2.5 及以上 |
WordPress版本: | 2.8.4 |
weekday-redirect
to the /wp-content/plugins/
directory[weekday-redirect]
in a pageIf you receive a PHP error similar to that above, you’ll need to enable output buffering if you can. This can be done fairly simply by adding the following line to your .htaccess file. (That lives in the root folder of your website: often named /htdocs, /httpdocs or /public_html.)
php_value output_buffering 4096This instructs PHP not to send data to the browser until the full page has bneen read by the server. (Usually, PHP sends HTML to the browser, processes a PHP block when it comes to one, sends the next bit of HTML and so on. If you try and instruct the browser to do something while it’s in this mode, unless the instruction is right at the beginning, it’ll be too late, because the browser’s already receiving data. Using the output_buffering setting means PHP waits for the entire HTML page to be parsed before sending the resulting HTML to the browser, with any instructions at the beginning of the page.)