View Full Version : Database Security

07-12-2012, 02:13 AM

On my current website I have a PHP file with my database connection information, which connects to the daetsbase and completes a query When I need to use it on a page, I call this other php page, and output the query - as I use the same query on multiple pages. Just wondering if there is a way to stop people from getting the source code of this page, so that they cannot end up with my db connection information.


07-12-2012, 10:44 AM
see http://www.codingforums.com/showthread.php?t=267591. unless your server is misconfigured or the file does not have the .php extension, PHP source code never leaves the server.

07-12-2012, 11:13 PM
Ok thanks.