I have an interesting task here.. is it possible to read the current file contents without file reading functions? (without file_get_contents, fopen etc.)
so if i have
<?
echo 'hi';
// function to output this file code
?>
the output of the php file should be same as the code (BUT without the file reading functions)
You can configure Apache to serve up PHP files as formatted source code with:
This’d make any
.phpsfiles be served up as source instead of executed. If you want a particular file to be served up, but also still be executable as an actual PHP script, you can create a symlink to it, and give the symlink a .phps extension.