-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
15 lines (12 loc) · 726 Bytes
/
index.php
File metadata and controls
15 lines (12 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
// ################ COMMON CODE FOR EACH PAGE, FOR DYNAMIC DIRECTORY ACCESS ############
// =====================================================================================
isset(explode('/', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))[1]) ? $project_folder = explode('/', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))[1] : $project_folder = 'your_project_folder_name';
include_once($_SERVER['DOCUMENT_ROOT'] . '/' . $project_folder . '/em_config.php');
// ========= END COMMON CODE ============================================================
?>
<?php
// --------- INCLUDE REQUIRED FILE LIKE HEADER ---------
include(app_url('inc/header.php'));
?>
<h4>Hello bangladesh</h4>