[TYPO3-core] using t3lib_db for non-TYPO3 databases on the same host
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Thu Jul 6 14:49:19 CEST 2006
Hi!
Currently it is not possible to connect to the same db host but use another db.
Why? typo3_db uses mysql_[p]connect() using the connection pool. So any
connect to the same server will get the same handle. Any further
select_db() will affect the main handle of $TYPO3_DB.
I suggest a fourth parameter 'new_link' that will force a connect with
mysql_connect($server,$user,$pwd,TRUE); which became available in PHP 4.2.
It's not urgent but a nice one for HEAD.
Masi
More information about the TYPO3-team-core
mailing list