Hi all,
I wrote in looking for help earlier today, and after talking to one of my friends "IRL", he came up with another idea, which was to hide the connection data in a function eg.
<?php
function php_mysql()
mysql_connect(localhost, user, pass);
?>
Notice it would have the information hardcoded into the fucntion,(not using variables) then have that inside a include file. If you were a little more paranoid perhaps you would also then make the connection info into variables, but in essence would not provide anymore security, perhaps it would lessen making one more file that you have watch.
Anyways the idea is that you would include the the script above before any database interaction.
Still ofcourse having the include away from the main root directory.
I wrote in looking for help earlier today, and after talking to one of my friends "IRL", he came up with another idea, which was to hide the connection data in a function eg.
<?php
function php_mysql()
mysql_connect(localhost, user, pass);
?>
Notice it would have the information hardcoded into the fucntion,(not using variables) then have that inside a include file. If you were a little more paranoid perhaps you would also then make the connection info into variables, but in essence would not provide anymore security, perhaps it would lessen making one more file that you have watch.
Anyways the idea is that you would include the the script above before any database interaction.
Still ofcourse having the include away from the main root directory.