Thursday, August 6, 2009

displaying php source file


Ever wonder how to take a PHP file, and display it color coded in a web browser?

Well... Wonder no more!

PHP CLI (Command Line Interpreter) comes with this nifty feature that does this automatically for you.

php -s filename.php > filename.html

creates a html output of the php file.

Cool, ain't it?



No comments:

Post a Comment