The highlight_file() function
prints out a syntax higlighted version of the code contained
in filename using the
colors defined in the built-in syntax highlighter for
PHP.
If the second parameter
return is set to
TRUE then highlight_file()
will return the highlighted code as a string instead of
printing it out. If the second parameter is not set to TRUE then
highlight_file() will return
TRUE on success,
FALSE on failure.
注: The return parameter became available in PHP 4.2.0. Before this time it behaved like the default, which is FALSE
注: Care should be taken when using the show_source() and highlight_file() functions to make sure that you do not inadvertently reveal sensitive information such as passwords or any other type of information that might create a potential security risk.
注: Since PHP 4.2.1 this function is also affected by safe_mode and open_basedir.
See also highlight_string(),
show_source().