$fr = fopen('db://testuser@localhost/testdb', 'r');$fw = fopen('db://testuser:testpassword@localhost/testdb', 'w');//The two forms above are accepted : for the former, the default password "" will be used