Access WP-Config.php Credentials
-
Update suggestion: I happen to store all my WP credentials in a file outside my public_html directory…to provider greater security… I call this file from the wp-config.php file, to load php variables for the credentials. For example,
require( dirname( __FILE__ ) . ‘../../../.PFF/files.conf’ );
/** The name of the database for WordPress */
define(‘DB_NAME’, $ep);
/** MySQL database username */
define(‘DB_USER’, $user);
/** MySQL database password */
define(‘DB_PASSWORD’, $pswd);
/** MySQL hostname */
/*define(‘DB_HOST’, ‘localhost’);*/
define(‘DB_HOST’, $host);
/*WordPress Database Table prefix.
$table_prefix = $ep_pre;It would be nice if you could address this method, and perhaps provide fields for us to define each credential with a variable name, so you can read them, and advise us to use them for this purpose if we are utilizing this method.
The reason I do this, primarily, is because I have 12+ web sites I manage, and it’s very easy to manage admin credentials from just one file. I know you understand the concept. I hope this turn a light on for ya! Thank you for an excellent WP plugin!
The page I need help with: [log in to see the link]
- The topic ‘Access WP-Config.php Credentials’ is closed to new replies.