Hi all,
This is a bit of an odd one:
I have a php file in the my root directory that I want to connect to the modx database for JSON purposes.
I have examined the index file in the root directory and see the following:
// initialize the variables prior to grabbing the config file
$database_type = '';
$database_server = '';
$database_user = '';
$database_password = '';
$dbase = '';
$table_prefix = '';
$base_url = '';
$base_path = '';
// get the required includes
if($database_user=="") {
$rt = @include_once(dirname(__FILE__).'/manager/includes/config.inc.php');
ETC
I was wondering if anyone knew how to adapt that for my file?
So I could connect and run queries straight of it?
Thanks!