Tried to put as much info as possible in the title here.
I thought one of the magic things of PDO was that it would actually connect to the database when a query was executed, and not before, hereby saving resources for script calls that don't need the database at all.
However, I just had entered some wrong credentials in a script not using a database, and I got a connection error, which kinda means it's trying to connect when constructing a PDO object 🙁
Is there something I have to set as an argument? Or is this a feature that I should code by myself?
Any help appreciated 🙂