"TYPO3 4.0.1: < hostspec > Protocol Reference",
"datetime" => "Sat Dec 2 19:25:06 2006",
"date" => "2 Dec 2006",
"doxygenversion" => "1.4.6",
"projectname" => "TYPO3 4.0.1",
"projectnumber" => "4.0.1"
);
get_header($doxygen_vars);
?>
< hostspec > Protocol Reference
Detailed Description
Parse a data source name
- Parameters:
-
| $dsn | string Data Source Name to be parsed |
- Returns:
- array an associative array with the following keys:
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
The documentation for this protocol was generated from the following file: