Recently, a serious problem has occurred when my web host got messed up and all my php files were shown in plain text. This was a serious problem for me for obvious reasons. Mostly since the details of the mysql database have been exposed.
Now I'm trying to change the way my php files get information to enter the database so that it never repeats, even if the hosting company did not let me down.
My current setup is as follows:
include 'info.php'; class Login { var $host; var $username; var $password; var $db; var $url;
Inside info.php the username, password, etc. are indicated. for the database. I want to make sure that the info.php file is never viewed, and only my .php files have access to info.php to get login information.
How can I customize this? This is a little difficult to explain, so please don't be harsh and -1 to me for a poor description. Just ask and I will clear up all the gaps in my description.
source share