Skip to content

Tag: json

PDO Connection with Json data [closed]

I want to get a PDO Connection with data from a json config file. I currently have this, but it doesn’t work and throws a fatal PDOException error $cfg = json_decode(“../config/config.json”); $host =…