You can use output buffering like this:
ob_start();
echo('doing something...');
// send to browser
ob_flush();
// ... do long running stuff
echo('still going...');
ob_flush();
echo('done.');
ob_end_flush();
More Related Contents:
- Pass PHP variable value into HTML label [closed]
- Changing the source php [closed]
- Auto Increment ID’s of 4 digit
- How to write this array in loop?
- Can I bind an array to an IN() condition in a PDO query?
- PDOException “could not find driver”
- Remove a child with a specific attribute, in SimpleXML for PHP
- Setting Curl’s Timeout in PHP
- Trying to get property of non-object – Laravel 5
- Cannot modify header information – headers already sent by… WordPress Issue [duplicate]
- Using Mysqli bind_param with date and time columns?
- Setting environment variables for accessing in PHP when using Apache
- Can you create instance properties dynamically in PHP?
- How to read only 5 last line of the text file in PHP?
- Remove empty tags from a XML with PHP
- Uncaught ReflectionException: Class log does not exist Laravel 5.2
- calling function inside preg_replace thats inside a function
- WAMP/MySQL errors not in correct language
- How can I parse JSON into a html table using PHP?
- PHP exec – check if enabled or disabled
- Parse error: syntax error, unexpected T_FUNCTION line 10?
- Get original URL referer with PHP?
- PHP: Best way to extract text within parenthesis?
- PHP – Get key name of array value
- Create Image From Url Any File Type
- how to change the array key to start from 1 instead of 0 [duplicate]
- How to get random image from directory using PHP
- Is it possible to detect a visitor’s browsing history using JavaScript or PHP?
- Fatal error: Unsupported operand types
- What is the PDO equivalent of function mysql_real_escape_string?