本文介绍了PHP - htaccess的 - output_buffering的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序根目录打开输出缓冲以下code在htaccess文件。

I have the following code in an htaccess file in my application root to turn output buffering on.

php_value output_buffering On
php_value output_handler mb_output_handler

在某些服务器则会导致500内部错误,对他人正常工作。没有人知道为什么它有时会导致错误。是否有不同的方式来做到这一点?

On some servers it causes a 500 internal error, on others it works fine. Does anyone know why it sometimes causes an error. Is there a different way to do this?

感谢您!

推荐答案

您可以使用此语法只的

You can use this syntax only if PHP is running as an Apache module.

500错误可能拿出的服务器在哪里,这是不是这样的。

The 500 errors probably come up on servers where this is not the case.

有关完全肯定,看看服务器的 error.log中文件进行了详细的错误信息。

For total certainty, look into the server's error.log file for a detailed error message.

这篇关于PHP - htaccess的 - output_buffering的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 17:21