The above is just a URL, like any other URL you might be familiar with.
The full spec of a URL says that you can specify a username and password in the URL itself for accessing password-protected material. For HTTP, this covers sites where Apache is set up to use basic authentication with .htaccess files.
Simply stated, the format goes:
<protocol>://[<username>:<password>@]<host>[<path>]
The square brackets surround optional items.
Lemme break down this one for you:
define("DSN", "mysql://admin:l3tm3in@localhost/wrox");
<protocol> = mysql
<username> = admin
<password> = l3tm3in
<host> = localhost
<path> = /wrox
Take care,
Nik
http://www.bigaction.org/