Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

flush(3) [php man page]

FLUSH(3)								 1								  FLUSH(3)

flush - Flush system output buffer

SYNOPSIS
void flush (void ) DESCRIPTION
Flushes the system write buffers of PHP and whatever backend PHP is using (CGI, a web server, etc). This attempts to push current output all the way to the browser with a few caveats. flush(3) may not be able to override the buffering scheme of your web server and it has no effect on any client-side buffering in the browser. It also doesn't affect PHP's userspace output buffering mechanism. This means you will have to call both ob_flush(3) and flush(3) to flush the ob output buffers if you are using those. Several servers, especially on Win32, will still buffer the output from your script until it terminates before transmitting the results to the browser. Server modules for Apache like mod_gzip may do buffering of their own that will cause flush(3) to not result in data being sent immedi- ately to the client. Even the browser may buffer its input before displaying it. Netscape, for example, buffers text until it receives an end-of-line or the beginning of a tag, and it won't render tables until the </table> tag of the outermost table is seen. Some versions of Microsoft Internet Explorer will only start to display the page after they have received 256 bytes of output, so you may need to send extra whitespace before flushing to get those browsers to display the page. RETURN VALUES
No value is returned. SEE ALSO
ob_flush(3), ob_clean(3), ob_end_flush(3), ob_end_clean(3). PHP Documentation Group FLUSH(3)

Check Out this Related Man Page

OB_GZHANDLER(3) 							 1							   OB_GZHANDLER(3)

ob_gzhandler - ob_start callback function to gzip output buffer

SYNOPSIS
string ob_gzhandler (string $buffer, int $mode) DESCRIPTION
ob_gzhandler(3) is intended to be used as a callback function for ob_start(3) to help facilitate sending gz-encoded data to web browsers that support compressed web pages. Before ob_gzhandler(3) actually sends compressed data, it determines what type of content encoding the browser will accept ("gzip", "deflate" or none at all) and will return its output accordingly. All browsers are supported since it's up to the browser to send the correct header saying that it accepts compressed web pages. If a browser doesn't support compressed pages this function returns FALSE. PARAMETERS
o $buffer - o $mode - RETURN VALUES
EXAMPLES
Example #1 ob_gzhandler(3) example <?php ob_start("ob_gzhandler"); ?> <html> <body> <p>This should be a compressed page.</p> </body> </html> NOTES
Note ob_gzhandler(3) requires the zlib extension. Note You cannot use both ob_gzhandler(3) and zlib.output_compression. Also note that using zlib.output_compression is preferred over ob_gzhandler(3). SEE ALSO
ob_start(3), ob_end_flush(3). PHP Documentation Group OB_GZHANDLER(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Nvram?

what is its signifance and how do you flush it. i was reading this book that said something about flushing the nvram before un-installing it. how do you do that and also whats the purpose of this nvram when the regular RAM is available (2 Replies)
Discussion started by: TRUEST
2 Replies

2. UNIX for Dummies Questions & Answers

add user from web

I am trying to figure out how to add a user from the web (w/ PHP or PERL): is it possible? (2 Replies)
Discussion started by: ryanroth
2 Replies

3. Shell Programming and Scripting

Multiple PHP sessions within the same browser instance

Dear all..... I am currently writing a Help-Desk / Knowledge Base application using PHP/PostGreSQL. I authenticate the user using a quite elaborate mechanism of cookies. The problem is that using cookies (I also have a version using sessions with the same problem), I can only seem to get one... (4 Replies)
Discussion started by: zazzybob
4 Replies

4. Shell Programming and Scripting

PHP - few things without root access

Helo, everybody ! I want to set up a web server. To make my work a little bit easyer, I surfed the internet to see how other web sites/servers are configured, and a few questions joined my mind (as I've never done a web server). So, my main question is: - How can I add some users from a web... (4 Replies)
Discussion started by: Sergiu-IT
4 Replies

5. Shell Programming and Scripting

Displaying text file in browser - perl

Don't know why this didn't get posted before but... I am having issues displaying a log file in the browser using perl and I can't get it to display at all, All i get is WHITE (blank page). I have proper permissions in my cgi-bin directory and everywhere else. So I know that's NOT the issue. ... (3 Replies)
Discussion started by: Dabheeruz
3 Replies

6. Shell Programming and Scripting

How to send output to web server, line by line?

The following code works perfectly, but I am having trouble adapting it to output to my web server rather than a local file: #!/bin/sh # VARIABLES adapter="/dev/tty.usbmodem0000001" if ; then cat $adapter | tee >> WORKING.txt echo "AT+VCID=1" > $adapter else echo "Modem... (3 Replies)
Discussion started by: dihewidd
3 Replies

7. UNIX for Dummies Questions & Answers

Communicate to the OS(linux) using front end.

Hi guys , I want to develop a web page which is capable of executing the command on os and show the output on the browser.(Which involves reading and writing too.) I m using jsp language to develop the web page. How would i use it to communicate with my linux server? Any... (3 Replies)
Discussion started by: pinga123
3 Replies

8. Linux

Run PHP script when new email received

I have been looking around for a solution to this, i have been developing for a wile though am very new to CGI, PHP and a lot of the web based tech. I have a web site hosted with a cPanel web host. I am looking to have a script(prefer PHP) to run everytime i get a new email to help@xxx.com.... (16 Replies)
Discussion started by: iKris
16 Replies

9. Programming

which signal will flush the file buffer in C/C++

which signal will flush the file buffer in C/C++? eg. send a signal to flush all the file buffer to a file/stdout with out invoking fflush(). -INT, -TERM? someone please help me, thanks in advance! waiting online... (8 Replies)
Discussion started by: jackliang
8 Replies

10. Web Development

What do I need to start PHP programming and web design?

I have a website and I am thinking of slowly making small mods to it and learn through tutorials along the way. To start using PHP where do I start? Should I use dreamweaver? or do I need a PHP program that will allow me to access and edit the code? My websites programmed in cakephp. I want... (3 Replies)
Discussion started by: Anna Hussie
3 Replies

11. Cybersecurity

Server has been compromised

Hi, I want to ask something about server that has been compromised. Recently, one of my VPS server has been hacked and the attacker install somekind like "IRC" script. Everytime I killed the process or close the port, it can open again .. and again ..I'm sure the attacker has installed... (14 Replies)
Discussion started by: franx47
14 Replies

12. HP-UX

[Solved] Weird 'ls -l' output

Hello folks, I've found an HP-UX server with a rare 'ls -l' output. Please see the attached file. Anybody knows how can I change the output to not have this extra tabulations? Thanks in advance! (10 Replies)
Discussion started by: carpannav
10 Replies

13. Web Development

PHP table isn't displaying

I have a PHP script which connects to a MySQL database and should output a table in HTML. I have tired to set up a long-polling AJAX script to poll my PHP script every second. It seems to work based on what I can see in my browser debugger, however the table isn't showing on the page. Can anybody... (3 Replies)
Discussion started by: hadinetcat
3 Replies

14. Web Development

How to create a link that will display the contents of a PHP variable?

Greetings, I've wrote a script that when you point your browser to a machine it displays info about itself. Below is a small snippet of the script: <?php $iloipaddr = `ipmitool lan print | grep 'IP Address ' | cut -d\: -f2 | sed 's/ //'`; $sftwrlist = `rpm -qa | sort`; ?> <p><a... (9 Replies)
Discussion started by: crimso
9 Replies

15. SCO

Any Other Browser for SCO UNIX OpenServer?

Obviously, the client browsers which came with SCO UNIX OpenServer, Netscape and Mozilla, are horribly outdated now. Does anyone know of a relatively current browser which will work in their place? (2 Replies)
Discussion started by: Transpower
2 Replies