31,034
edits
mNo edit summary |
mNo edit summary |
||
| Line 22: | Line 22: | ||
So: | So: | ||
* $dolibarr_main_document_root is known in code in constant: DOL_DOCUMENT_ROOT | |||
* $dolibarr_main_url_root is known in code in constant: DOL_URL_ROOT | |||
* $dolibarr_main_db_type is known in code on variable $conf->db->type | |||
* $dolibarr_main_db_host is known in code on variable $conf->db->host | |||
* $dolibarr_main_db_port is known in code on variable $conf->db->port | |||
* $dolibarr_main_db_name is known in code on variable $conf->db->name | |||
* $dolibarr_main_db_user is known in code on variable $conf->db->login | |||
* $dolibarr_main_db_pass is not known by code. It is read by script '''master.inc.php''' (called by every PHP program) that created on object connexion '''$db''' then variable $dolibarr_main_db_pass is erased. | |||
You development should only need to use constants DOL_DOCUMENT_ROOT (that indicate physical path of directory where permanent or temporary files are stored) and DOL_URL_ROOT (that indicate relative URL that is Dolibarr root). | You development should only need to use constants DOL_DOCUMENT_ROOT (that indicate physical path of directory where permanent or temporary files are stored) and DOL_URL_ROOT (that indicate relative URL that is Dolibarr root). | ||