Cannot use output buffering in output buffering display handlers

前端 未结 3 1434
长发绾君心
长发绾君心 2021-01-17 17:24

I\'ve reinstalled Apache, and switched from PHP 5.3 to 5.6. Everything works, except I get this error, when calling ob_start():

Cannot use outpu         


        
3条回答
  •  星月不相逢
    2021-01-17 18:14

    maybe this sample code can help you:

    ob_start();
    echo "test";
    $content = ob_get_contents();
    ob_end_clean();
    var_dump($content);
    

提交回复
热议问题