ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
<hostspec> Protocol Reference

Parse a data source name. More...

+ Collaboration diagram for <hostspec>:

Detailed Description

Parse a data source name.

phptype://username:password@hostspec/database_name phptype://username:password@hostspec phptype://username@hostspec phptype://hostspec/database phptype://hostspec phptype(dbsyntax) phptype

Additional keys can be added by appending a URI query string to the end of the DSN.

The format of the supplied DSN is in its fullest form: phptype(dbsyntax)://username:password

Most variations are allowed: phptype://username:password

Parameters
stringData 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

@access public

Author
Tomas V.V.Cox cox@i.nosp@m.decn.nosp@m.et.co.nosp@m.m


The documentation for this protocol was generated from the following file: