05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

header<br />

void header(string header[, bool replace])<br />

Sends header as a raw HTTP header string; must be called before any output is generated<br />

(including blank lines, a common mistake). If the header is a Location header, <strong>PHP</strong> also<br />

generates the appropriate REDIRECT status code. If replace is specified and false, the header<br />

does not replace a header of the same name; otherwise, the header replaces any header of<br />

the same name.<br />

headers_sent<br />

bool headers_sent( )<br />

Returns true if the HTTP headers have already been sent. If they have not yet been sent,<br />

the function returns false.<br />

hebrev<br />

string hebrev(string string[, int size])<br />

Converts the logical Hebrew text string to visual Hebrew text. If the second parameter is<br />

specified, each line will contain no more than size characters; the function attempts to<br />

avoid breaking words.<br />

hebrevc<br />

string hebrev(string string[, int size])<br />

Performs the same function as hebrev( ), except that in addition to converting string,<br />

newlines are converted to \n. If specified, each line will contain no more than size<br />

characters; the function attempts to avoid breaking words.<br />

highlight_file<br />

bool highlight_file(string filename)<br />

Prints a syntax-colored version of the <strong>PHP</strong> source file filename using <strong>PHP</strong>’s built-in syntax<br />

highlighter. Returns true if filename exists and is a <strong>PHP</strong> source file; otherwise, returns<br />

false.<br />

highlight_string<br />

bool highlight_string(string source)<br />

Prints a syntax-colored version of the string source using <strong>PHP</strong>’s built-in syntax highlighter.<br />

Returns true if successful; otherwise, returns false.<br />

412 | Appendix A: Function Reference<br />

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

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.

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

Saved successfully!

Ooh no, something went wrong!