TYPO3 CMS
TYPO3_6-2
|
Parse a data source name
$dsn | string Data Source Name to be parsed |
phptype: Database backend used in PHP (mysql, odbc etc.) dbsyntax: Database used with regards to SQL syntax etc. protocol: Communication protocol to use (tcp, unix etc.) hostspec: Host specification (hostname[:port]) database: Database to use on the DBMS server username: User name for login password: Password for login
The format of the supplied DSN is in its fullest form:
phptype(dbsyntax)://username:password Most variations are allowed:
phptype://username:password