PHP - htaccess的 - output_bufferingPHP、htaccess、output_buffering

2023-09-02 00:28:11 作者:殇言

我在我的应用程序根目录打开输出缓冲以下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?

感谢您!

推荐答案

您可以使用此语法只的如果PHP运行作为Apache模块。

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.