note 25096 deleted from function.htmlentities by philip
| From: | philip@php.net | Date: | Mon, 18 Nov 2002 20:46:30 +0000 |
| Subject: | note 25096 deleted from function.htmlentities by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39655@lists.php.net to get a copy of this message | ||
[Editor's note: The show_source() (and related functions) do not "convert to HTML"
but perform syntax colorization on the input string (or file)]
To convert some file name to html and save it's contents to a string, try this.
$source = show_source('/htdocs/file.php', TRUE);
echo $source;
show_source()'s second parameter by default is FALSE which means to show the file contents on
it's own. By setting it to TRUE it returns the file contents as a string.