open('test.db'); } } $db = new DB(); if(!$db){ echo $db->lastErrorMsg(); }else{ echo "Opened database successfully\n"; } ?>