I use php for a website. Can a web user access or see code of these php files?

Can php files be accessed or seen by the public?  If so, how can they?
reontarehaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Sander StadConnect With a Mentor Systeemontwikkelaar, Database AdministratorCommented:
PHP is like all other server-based languages meant to only return static content and execute code on the server.
With this in mind, why would you want people to be able to access your PHP pages?
0
 
reontarehaAuthor Commented:
I DON'T want people to access them for security reasons, thats why i asked the question.  Thanks for your solution.
0
 
butterhookCommented:
The php scripts themselves will NOT be visible to the outside world.

However the HTML content that they render at execution WILL be visible... but this is the whole idea!

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.