Methods ob_start and ob_flush don't work, why?

前端 未结 7 1107
时光取名叫无心
时光取名叫无心 2020-12-29 11:49

I am using ob_start()/ob_flush() to, hopefully, give me some progress during a long import operation.

Here is a simple outline of what I\'m

7条回答
  •  庸人自扰
    2020-12-29 12:32

    Hey man I was also got stuck in this problem and finally got the correct solution here it is for you

    you have to add content type for your page you can do that by two ways 1. using html tag

    
    

    Ex.

    
    
    
    
    Wp Migration
    
    
    ';
    ob_flush();
    flush();
    sleep(3);
    }
    ?>
    
    
    
    1. using php header function

    Ex.

    ';
    ob_flush();
    flush();
    sleep(3);
    }
    ?>
    

    All the best

提交回复
热议问题