05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ob_gzhandler<br />

string ob_gzhandler(string buffer[, int mode])<br />

This function gzip-compresses output before it is sent to the browser. You don’t call this<br />

function directly. Rather, it is used as a handler for output buffering using the ob_start( )<br />

function. To enable gzip-compression, call ob_start( ) with this function’s name:<br />

<br />

ob_implicit_flush<br />

void ob_implicit_flush([int flag])<br />

If flag is true or unspecified, turns on output buffering with implicit flushing. When<br />

implicit flushing is enabled, the output buffer is cleared and sent to the client after any<br />

output (such as the printf( ) and echo( ) functions). See Chapter 13 for more information<br />

on using the output buffer.<br />

ob_start<br />

void ob_start([string callback])<br />

Turns on output buffering, which causes all output to be accumulated in a buffer instead of<br />

being sent directly to the browser. If callback is specified, it is a function (called before<br />

sending the output buffer to the client) that can modify the data in any way; the ob_<br />

gzhandler( ) function is provided to compress the output buffer in a client-aware manner.<br />

See Chapter 13 for more information on using the output buffer.<br />

octdec<br />

int octdec(string octal)<br />

Converts octal to its decimal value. Up to a 32-bit number, or 2,147,483,647 decimal<br />

(017777777777 octal), can be converted.<br />

opendir<br />

int opendir(string path)<br />

Opens the directory path and returns a directory handle for the path that is suitable for use<br />

in subsequent readdir( ), rewinddir( ), and closedir( ) calls. If path is not a valid directory,<br />

if permissions do not allow the <strong>PHP</strong> process to read the directory, or if any other error<br />

occurs, false is returned.<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.<br />

opendir | 427

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!