all,
here's a nifty little tool i just finished up: a source code viewer, enhanced with syntax highlighting and line numbering. it accepts $_GET['file'] as it's input, and then does the rest.
give it a whirl and let me know if anything is broken...
wow, no comments? i'm so dejected... :o
Beware of running this on a live server without access control E.g. you wouldnt want anyone reading /etc/passwd and /etc/shadow on a miss-configured server. (as I have seen happen on this board) whistle
Probably the people aren't very interested, cause the PHP Function highlight_string(); does the same. 🙂
or the .phps mime-type extension thingy... this script has other uses though and jmcneese should carry on making his scripts as a learning aide for other users 🙂
Originally posted by Kall Probably the people aren't very interested, cause the PHP Function highlight_string(); does the same. 🙂
this script makes use of highlight_string(). what makes this a bit different is accepting a file as argument, then running it through highlight_string(), as well as numbering the lines.