Can the contents of the PHP file be viewed?

I uploaded my files to Infinity Free with free host. It works flawlessly. I’m wondering: there is PHPMailer in the “iletisim.php” file I created. So here it says gmail and password. Can people accessing my site read the contents of this file? I’m not sure of that.

If it’s a PHP file, no. Use an app password instead your your real password though.

2 Likes

Thank you :slight_smile: I’m glad the information is not accessible. I don’t know about the app :frowning: Also thanks to user “Looneycorn” for the answer. He shared the following information with me:

Set the permissions of the file to 440.
In FileZilla that would be right-clicking the file → Permissions (on the bottom of the Shell Menu)

DO NOT set the permission lower than 600!!!

If you do, you will permanently lose access to the file. It will still be on the server, and given to the user. But you will not be able to edit, delete, or replace it.

3 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.