This question has already been answered:
- Ability to issue the server source code 7 responses
Suppose you are creating your website composed of PHP pages that contain HTML code. These pages are located in the root folder of the hosting (in the same place as the main index.php ). It is clear that the user, if he opens the developerβs tools in the browser, sees only the generated HTML code.
Question: Is it possible for a user in this situation to see the source PHP code without hacking the server in order to gain access to the files? In particular, I ask you to mention in the answer of the program for saving pages for the purpose of their further viewing from offline mode.