Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /** Website database connection **/
- $DATABASE_HOST = 'localhost';
- $DATABASE_USER = 'non-root-user';
- $DATABASE_PASS = 'psw';
- $DATABASE_NAME = 'my-db';
- $websiteConnection = mysqli_connect($DATABASE_HOST, $DATABASE_USER, $DATABASE_PASS, $DATABASE_NAME);
- /** Hub database connection **/
- $DATABASE_HOST = 'localhost';
- $DATABASE_USER = 'non-root-user';
- $DATABASE_PASS = 'psw';
- $DATABASE_NAME = 'my-db';
- $hubConnection = mysqli_connect($DATABASE_HOST, $DATABASE_USER, $DATABASE_PASS, $DATABASE_NAME);
- /* Unset the variables so they cannot be accessed anymore. */
- unset($DATABASE_HOST);
- unset($DATABASE_USER);
- unset($DATABASE_PASS);
- unset($DATABASE_NAME);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement