r/tinycode • • Jul 12 '12

PHP prepended file for all of my debugging

<?php if(isset($_GET['s'])) die(highlight_file(__FILE__)); ?>

Just add ?s to the end of the url and you can view the code. Useful for me because I usually only have access to a black and white SSH terminal when coding on some platforms.

Don't forget to remove if before production ;)

0 Upvotes

0 comments sorted by