Is it possible for people to access PHP code on website ?

Ever

New member
I just started on PHP and create my first website.

But I wonder if other people could access my PHP codes through my website.

It would be extremely harmful if they could look at my code because it contain information such as database password etc.

If it's possible, is there ways to lock them down ?

Thank you very much ! =)
 
You're safe!

Your PHP program will only send its OUTPUT to the browser at the client computer. Anything between <? ?> tags are totally protected against prying eyes. If you view the source, you'll only see the hTML and whatever the PHP code outputs.

Other posters are talking about the fact that yes, people can view your HTML code - but that's hardly your concern, I assume.
 
Back
Top