Hi,
Could someone confirm for me exactly what I should be putting in my config files for installatron.
The config file is:
define('DB_HOST', 'localhost'); // The host/ip to your SQL server
define('DB_USER', 'user'); // The username to connect with
define('DB_PASS', 'pass'); // The password
define('DB_NAME', 'name'); // Database name
define('DB_PREFIX', 'prefix'); // The table prefix
define('DB_PORT','3306'); // The SQL port (Default: 3306)
And I'm using the code provided in your SDK documentation
// use regex to edit a file:
// - insert the Installatron-generated database values into the config file
// - insert the path and url into the config file
$this->sr("CONFIG_FILE.php", array(
"#DB_VAR_HOST = '.*?'#" => "DB_VAR_HOST = ".var_export($this->db_host,true),
"#DB_VAR_NAME = '.*?'#" => "DB_VAR_NAME = ".var_export($this->db_name,true),
"#DB_VAR_USER = '.*?'#" => "DB_VAR_USER = ".var_export($this->db_user,true),
"#DB_VAR_PASS = '.*?'#" => "DB_VAR_PASS = ".var_export($this->db_pass,true),
"#DB_VAR_PREF = '.*?'#" => "DB_VAR_PREF = ".var_export($this->db_prefix,true),
"#SCRIPT_PATH_VAR = '.*?'#" => "SCRIPT_PATH_VAR = ".var_export($this->path,true),
"#SCRIPT_URL_VAR = '.*?'#" => "SCRIPT_URL_VAR = ".var_export($this->url,true),
));
So what do I replace the parts in red with?
