Is there a way to display the source code of somepage.php when you go to somepagesrc.php? IOW, is there a PHP function that will in somepage
somepage.php
somepagesrc.php
somepage
Maybe use file_get_contents along with header('Content-type: text/plain') - but obligatory security warning - be sure to filter the names of files so people can't include more than you intent.
file_get_contents
header('Content-type: text/plain')
E.g.: