Advertisement
Guest User

Untitled

a guest
Mar 29th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Fatal error: Class 'PDO' not found in /home/itstec2/public_html/pard_config/class/Config.php on line 13
  2.  
  3. <?php
  4.  
  5. $dbhost=null;
  6. $dbname=null;
  7. $dbuser=null;
  8. $dbpass=null;
  9.  
  10. $file = __DIR__ ."/config.json";
  11.  
  12. $array = file_get_contents($file);
  13. $dbConfig=json_decode($array);
  14.  
  15. $pardConfig=new PDO('mysql:host='.$dbConfig[0].';'.'dbname='.$dbConfig[1],$dbConfig[2],$dbConfig[3]);
  16.  
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement