Configuration file: Difference between revisions

Jump to navigation Jump to search
Line 46: Line 46:


= Usage in coding =
= Usage in coding =
Content of file must be used by developers by using predefined constants or the object '''$conf''' created by the script '''master.inc.php''' that must be includes at beginning of every PHP program (scripts or pages).
Content of file must be used by developers by using predefined constants or the object '''$conf''' created by the file '''master.inc.php''' or '''main.inc.php''' that must be included at beginning of every PHP program (master.inc.php for scripts or main.inc.php for pages).
Your code must never open the config file and read it directly. This is not necessarly.
Your code must never open the config file and read it directly. This is not necessarly.


Navigation menu