Update:Archive/1.0/Developers: Difference between revisions

Jump to navigation Jump to search
Line 325: Line 325:
* This file should not create the connection.  Connections should only be created when they will be used.  As it stands, this forces every page on UMO to create a DB connection whether or not it will be used for anything.
* This file should not create the connection.  Connections should only be created when they will be used.  As it stands, this forces every page on UMO to create a DB connection whether or not it will be used for anything.
* Someone could use a script, point at this file and create however many unused DB connections they wanted by simply opening it.
* Someone could use a script, point at this file and create however many unused DB connections they wanted by simply opening it.
* The proper way to handle db connections would be to explicitly connect to the db in the script that is doing a query.  It reduces confusion and also allows for scripts that don't connect just because they include the config/init scripts.


====/core/inc_browserdetection.php====
====/core/inc_browserdetection.php====
3,035

edits

Navigation menu