Juan Nguyen
Juan Nguyen

Reputation: 51

Can admin of the web server see my php code?

I am making a form that will send the information to my email and I need to take another email to send that form to the main email (using PHPMailer). So in my php code, I have put the password of the 2nd email in it. I will upload my code files to the server. Can admin of the web server have ability to see the variables in my code?

Upvotes: 1

Views: 98

Answers (2)

Aleksandar Đokić
Aleksandar Đokić

Reputation: 2351

Yes, of course that they can... because they have root level access to your files.

Please watch this video and you will understand how PHP works.

Upvotes: 1

Mureinik
Mureinik

Reputation: 311853

In a word - yes. You can assume anyone with admin (root) level access to the server can read whatever file he wants.

Upvotes: 1

Related Questions