Is there any way to view PHP code (the actual code not the compiled result) from a client machine?

Posted by Columbo on Stack Overflow See other posts from Stack Overflow or by Columbo
Published on 2010-05-17T09:45:26Z Indexed on 2010/05/17 9:50 UTC
Read the original article Hit count: 172

Filed under:
|

This may be a really stupid question...I started worrying last night that there might be someway to view PHP files on a server via a browser or someother means on a client machine. My worry is, I have an include file that contains the database username and password. If there were a way to put the address of this file in to a browser or some other system and see the code itself then it would be an issue for obvious reasons.

Is this a legitimate concern? If so how do people go about preventing this?

© Stack Overflow or respective owner

Related posts about php

Related posts about security