Cannot use output buffering in output buffering display handlers

前端 未结 3 1460
长发绾君心
长发绾君心 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:10

    You're trying to start a output buffer inside a buffer callback. If you use this code, it will generate that error. But if you remove the ob_start() from the callback function it's OK.

    
    
    
    

    It's like comparing apples to oranges.

提交回复
热议问题