D
D
DenPolosin2017-08-24 14:14:40
PHP
DenPolosin, 2017-08-24 14:14:40

Why is the text not immediately displayed in the console?

I wrote a script in php and run it in the terminal, it contains the text that is displayed before connecting

include_once($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php');

output immediately, everything that follows, until the script completes its work. What is the reason? How to make it so that it outputs immediately, and not after execution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DenPolosin, 2017-08-24
@DenPolosin

The following helped:

while (ob_get_level()){
    ob_end_flush();
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question