I'm learning PHP and have a question.
If I use the following code to connect to a database, will possible errors appear inside Apache's error log?
$con = new PDO('mysql:host='.$h.';dbname='.$dbn.';charset=utf8', $u, $p);
$con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
$con->setAttribute(PDO::ATTR_EMULATE_PREPARES,false);
If they do appear there, what's the reason to use try and catches?
Thanks.