Advertisement
AlexWebDevelop

Untitled

Oct 28th, 2020
2,303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3.     /** Website database connection **/
  4.     $DATABASE_HOST = 'localhost';
  5.     $DATABASE_USER = 'non-root-user';
  6.     $DATABASE_PASS = 'psw';
  7.     $DATABASE_NAME = 'my-db';
  8.  
  9.     $websiteConnection = mysqli_connect($DATABASE_HOST, $DATABASE_USER, $DATABASE_PASS, $DATABASE_NAME);
  10.  
  11.     /** Hub database connection **/
  12.     $DATABASE_HOST = 'localhost';
  13.     $DATABASE_USER = 'non-root-user';
  14.     $DATABASE_PASS = 'psw';
  15.     $DATABASE_NAME = 'my-db';
  16.  
  17.     $hubConnection = mysqli_connect($DATABASE_HOST, $DATABASE_USER, $DATABASE_PASS, $DATABASE_NAME);
  18.    
  19.     /* Unset the variables so they cannot be accessed anymore. */
  20.     unset($DATABASE_HOST);
  21.     unset($DATABASE_USER);
  22.     unset($DATABASE_PASS);
  23.     unset($DATABASE_NAME);
  24.  
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement