December 20, 2006...4:46 am

php notes : displaying php code contents

Jump to Comments

$filename =’myscript.php’;

$flush_file =hightlight_file($filename);
/*
hightlight_file($filename)
- The highlight_file() function prints out a syntax highlighted version of the code contained in filename using the colors defined in the built-in syntax highlighter for PHP.
*/

Leave a Reply