PHP Error: ob_flush() [ref.outcontrol]: failed to flush buffer. No buffer to flush

后端 未结 3 1439
难免孤独
难免孤独 2021-01-04 09:40

Could someone please save these 2 files and run them and tell me why I get the error \" ob_flush() [ref.outcontrol]: failed to flush buffer. No buffer to flush\". I tried go

3条回答
  •  梦毁少年i
    2021-01-04 10:02

    Where is ob_start()?

    ob_flush flushes the output buffer to your file handle. Maybe you have it wrong.

    An example:

    ob_start(); //start output buffering
    echo 'hello world'; //not outputed
    ob_flush(); //sends the output buffer so displays hello world.
    

    manual

提交回复
热议问题