SHARE
TWEET

Untitled

a guest Jul 20th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $host = '127.0.0.1';
  3. $db   = 'default';
  4. $user = 'default';
  5. $pass = 'default';
  6. $charset = 'utf8';
  7. $port = 9004;
  8.  
  9. $dsn = "mysql:host=$host;port=$port;dbname=$db;charset=$charset";
  10. $options = [
  11.     PDO::ATTR_ERRMODE            => PDO::ERRMODE_EXCEPTION,
  12.     PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
  13.     PDO::ATTR_EMULATE_PREPARES   => false,
  14. ];
  15. $pdo = new PDO($dsn, $user, $pass, $options);
  16.  
  17. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top