PHP - How Detect if Output Buffering is Enabled

后端 未结 4 1123
轮回少年
轮回少年 2020-12-11 04:20

Is there a simple way to detect in PHP if output_buffering is enabled in php.ini? I\'d like to be able to display a message if it is not enabled.

Within my a

4条回答
  •  情歌与酒
    2020-12-11 04:27

    simple

    check by

    echo ini_get('output_buffering');
    

    or run a file calling phpinfo(); function it will list all veriables containing values check the value for 'output_buffering ' in list.

提交回复
热议问题