PHP - htaccess - output_buffering

5 php .htaccess output-buffering

我在我的应用程序根目录中的htaccess文件中有以下代码来打开输出缓冲.

php_value output_buffering On
php_value output_handler mb_output_handler
Run Code Online (Sandbox Code Playgroud)

在某些服务器上它会导致500内部错误,而在其他服务器上它可以正常工作 有谁知道为什么它有时会导致错误.有没有不同的方法来做到这一点?

谢谢!

Pek*_*ica 4

仅当 PHP 作为 Apache 模块运行时才能使用此语法。

500 错误可能会出现在并非如此的服务器上。

为了完全确定,请查看服务器的error.log文件以获取详细的错误消息。