output-buffering Questions

4

Solved

So I'm writing a disposable script for my own personal single use and I want to be able see how the process is going. Basically I'm processing a couple of thousand media releases and sending them t...

1

Solved

I'm dealing with a migration from ColdFusion 9 to ColdFusion 11. One issue I've run into is essentially the same as that detailed in this question: cf10 unable to add text to HTML Head The root ca...
Uncloak asked 12/9, 2014 at 15:29

3

Solved

I have a PHP script which sends a large number of records, and I want to flush each record as soon as it is available: the client is able to process each record as it arrives, it does not need to w...
Guilt asked 22/2, 2013 at 16:18

8

Solved

In PHP, I want to read a file into a variable and process the PHP in the file at the same time without using output buffering. Is this possible? Essentially I want to be able to accomplish this wi...
Pantagruel asked 21/10, 2008 at 18:25

1

Solved

What are the differences between these two ways of obtaining file contents? Which one is better and more efficient? I think they both obtain the same results but I really don't know which method is...
Homeric asked 7/10, 2014 at 20:17

1

Solved

I have a python script that performs a simulation. It takes a fairly long, varying time to run through each iteration, so I print a . after each loop as a way to monitor how fast it runs and how fa...
Ultrared asked 17/9, 2014 at 18:0

3

Solved

I have a few conceptual questions (all related, I think) regarding the following script, at the comments. The script works fine. <?PHP ob_start(); // Create string to overflow browser buffer ....
Expertize asked 16/11, 2010 at 5:0

1

My site's admin section has a bunch of very slow report-generating scripts that echo output line by line as it is generated. To have this output flushed immediately to the browser, instead of the u...
Whiskey asked 25/5, 2014 at 11:58

3

Solved

I would like to have page content for a web page I am developing appear on screen as it is downloaded. In my test/development environment this works as expected using the PHP flush() command. Howe...
Supra asked 16/11, 2013 at 13:5

4

In my website(running with drupal) the ob_flush function takes a long time(between 10 - 100 secs) to be executed. How do I find out why? What can cause this so long time?
Coeternal asked 16/12, 2012 at 17:56

5

Solved

I'm using PHP, MySQL, Smarty, jQuery, AJAX, etc. for my website. Currently, I'm fetching a large amount of data (matching question IDs) from the MySQL database, do processing on it, assigning this ...
Inextinguishable asked 7/12, 2013 at 9:22

2

Solved

Can anyone explain why I am receiving the following error? In the code, if the echo $gz; is commented out I receive no error (but also no output!), if it isn't I get (from Firefox), Content En...
Maccarthy asked 19/6, 2011 at 14:4

2

Solved

I don't know exactly how output buffering works but as far as know it stores content into some internal variable. Regarding this, what is the difference of not using output buffering and storing ...
Intelsat asked 26/1, 2013 at 15:51

1

Solved

The problem is illustrated by this simple script: import time, os, sys sys.stdout = os.fdopen( sys.stdout.fileno(), 'w', 1 ) # line-buffer stdout print 'before sleep' time.sleep( 10 ) print 'after...
Desiredesirea asked 15/1, 2013 at 20:35

1

Solved

The PHP tidy extension has a function ob_tidyhandlerDocs that works with PHP output bufferingDocs as a callback, e.g.: ob_start('ob_tidyhandler'); I know that Tidy has a lot of configuration set...
Thief asked 24/7, 2012 at 10:44

2

Solved

I'm trying to unit-test my controller (Yii framework). /** * @dataProvider provider */ public function testActionEdit_view_login($controller){ $user = new CWebUser; $user->id = 978; $ide...
Starwort asked 20/7, 2011 at 1:29

2

Solved

i have reviewed php manual about the ob_start() ob_end_clean() ob_end_flush(). And i have seen a different example about the subject, anyway i modified the example but i'm confused at this point. h...
Spurling asked 4/5, 2012 at 1:8

6

Solved

This is purely for learning more about output buffering and nothing more. What I wish to do is echo a string to the browser, sleep 10 seconds, and then echo something else. Normally the browser wou...
Palaeontology asked 10/9, 2010 at 15:7

3

Solved

There were a number of other threads like this, but the usual conclusion was something like "Install File::Tail". But, I'm on an old box that we're decomissioning, and I just want to write a one-li...
Corneous asked 9/11, 2011 at 19:15

2

Solved

Is it possible to do like $var = require_once('lol.php'); so that any HTML output that lol.php does will go inside $var? I know about output buffering, but is there some special built-in functi...
Dahle asked 16/10, 2011 at 18:5

4

Solved

They both seem to do the same thing: return the output buffer content to you and delete it aftewards. Which one should I use?
Marga asked 11/9, 2011 at 16:48

4

Solved

What's the difference between ob_flush() and flush() and why must I call both? The ob_flush() reference says: This function will send the contents of the output buffer (if any). The flush() r...
Dellinger asked 16/11, 2010 at 5:10

8

Solved

Are ob_start / ob_get_clean() considered bad practice by php programmers in general? Are there any disadvantages of output buffering?
Trait asked 19/1, 2011 at 3:8

4

Solved

I use output buffering for gzip compression and access to what was put out before in a PHP script: if(!ob_start("ob_gzhandler")) ob_start(); Now if that script gets included in another s...
Combe asked 15/5, 2011 at 18:40

2

I have read on many websites that using ob_start(); can enhance your page load times, as it stores the php in a variable and displays it in one go rather than processing the php a bit of...
Fado asked 19/4, 2011 at 11:58

© 2022 - 2024 — McMap. All rights reserved.