forked from ronnguyen1011/NursingClinical
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitial.php
More file actions
23 lines (18 loc) · 763 Bytes
/
initial.php
File metadata and controls
23 lines (18 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
// start the session
session_start();
// display errors (when needed)
// error_reporting(E_ALL);
// ini_set('display_errors', 1);
// define path constants
define("PUBLIC_HTML_PATH", dirname(__FILE__));
define("PHP_PATH", PUBLIC_HTML_PATH . "/NursingClinical/Controller");
define("LAYOUTS_PATH", PHP_PATH . "/layouts");
// define cookie keys
define("SUBMITTED_SURVEY_KEY", "submitted-survey");
// provide DB credentials and connect/disconnect functions
$_SERVER['DOCUMENT_ROOT'] = str_replace('/public_html', '', $_SERVER['DOCUMENT_ROOT']);
require_once($_SERVER['DOCUMENT_ROOT'] . '/db-connect-nursing.php');
// include all PHP helper functions
require_once(PHP_PATH . "/helpers.php");
?>