I'm working on a project that involves creating EXTRA tables in the same DB that WP uses.
Before, I was simply just including wp-config.php to get the information, but am now having difficulties using this in parts of the app, that are executed OUTSIDE wordpress.
After posting a question on Wordpress.Stackexchange, one user advised me to use the file() function to get the information from wp-config.php.
I've loked into the file() funciton but cant understand it well.
Can someone just post an example code to get constant vars like this from a php file:
wp-config.php:
define('DB_HOST','host');
define('DB_user','user');
define('DB_pass','password');
I need to get those variables, to work on the DB side of things.