You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 5, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 5, 2022. It is now read-only.
Activity
TGM commentedon Jun 13, 2013
I think this is the proper way to do it.
$dsn = 'mysql:' .
'dbname=test;' .
'table=phpsec;' .
'host=localhost;' .
'username=databaseusername;' .
'password=databasepassword';
$psl['store'] = $psl->share(function($psl) use($dsn) {
return new phpSec\Store\Pdo($dsn, $psl);
});
xqus commentedon Jul 28, 2013
This is a docimentation issue. The part describing the database connection should be updated.
TGM commentedon Jan 14, 2014
Regarding the database connection.
We should add
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);