View difference between Paste ID: nxUxQmFL and hav8bB0v
SHOW: | | - or go back to the newest paste.
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
?>