However, I do not want them knowing the MySQL credentials, so what I have done is moved my config.php file to a "config" folder inside the includes folder, then edited config.php inside the includes folder and removed everything, and added this:
I have also added an index.html file in the config folder.
Is this ok? Will I have any issues with vB in the future? Insofar, it seems to be working fine using this method. I do understand that whenever I upgrade I will have to do this again.
EDIT: I've found another way of doing this. I can disable FTP access of config.php itself by using CPanel, and setting the permissions (using the File Manager) to 222. Would this be fine?
MGM out
PHP Code:
<?php include("config/config.php"); ?>
Is this ok? Will I have any issues with vB in the future? Insofar, it seems to be working fine using this method. I do understand that whenever I upgrade I will have to do this again.
EDIT: I've found another way of doing this. I can disable FTP access of config.php itself by using CPanel, and setting the permissions (using the File Manager) to 222. Would this be fine?
MGM out
Comment