-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
50 lines (36 loc) · 962 Bytes
/
config.php
File metadata and controls
50 lines (36 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
$debug_mode;
// Here change variables with your own settings
/*
$mysqlhost='localhost';
$mysqlusername='root';
$mysqlpassword='';
$mysqldb='final_db';
$root_dir = "/final/";
ini_set('display_errors', 1);
*/
if($_SERVER['SERVER_NAME'] == "localhost"){
// DEV ENVIRONMENT SETTINGS
$mysqlhost='localhost';
$mysqlusername='root';
$mysqlpassword='';
$mysqldb='final_db';
$root_dir = "/final/";
error_reporting(E_ALL);
ini_set('display_errors', 1);
}else{
// PRODUCTION SETTINGS
$mysqlhost = "198.71.225.58:3306";
$mysqldb = "final_db";
$mysqlusername = "usernew_this";
$mysqlpassword = "@I18nk7o";
$root_dir = "/final/";
$debug_mode = false;
error_reporting(E_ALL);
ini_set('display_errors', 1);
}
require_once("includes/custom_error_handler.inc.php");
set_error_handler ("myErrorHandler");
// set up a connection to the db
$conn=mysqli_connect($mysqlhost,$mysqlusername,$mysqlpassword,$mysqldb);
?>