Файл " мозг" php - лежит в папке - public_html
<?php
include_once 'setting.php';
session_start();
$CONNECT = mysqli_connect(HOST, USER, PASS, DB);
if ($_SERVER['REQUEST_URI'] == '/') {
$Page = 'index';
$Module = 'index';
} else {
$URL_Path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$URL_Parts = explode('/', trim($URL_Path, ' /'));
$Page = array_shift($URL_Parts);
$Module = array_shift($URL_Parts);
if (!empty($Module)) {
$Param = array();
for ($i = 0; $i < count($URL_Parts); $i++) {
$Param[$URL_Parts[$i]] = $URL_Parts[++$i];
}
}
}
if ($Page == 'index') include ('page/index.php');
?>
Файл PHP - где отображается главная страница, лежит в папке - page:
<!DOCTYPE html>
<html>
<head>
<link href="resource/style.css" rel="stylesheet">
<meta charset="utf-8" />
<title>Главная страница</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
</head>
<body>
<div class="wrapper">
<div class="header"></div>
<div class="content">123</div>
<div class="footer">
</footer>
</div>
</body>
</html>
Файл CSS, лежит в папке- resource:
*{margin: 0; padding: 0 }
body {font: 12px/18px Arial, sans-serif; width: 100%; background: url(resource/img/1.jpeg/) top center no-repeat}
.wrapper {
width: 1000px;
margin: 0 auto;
}
/* Header
-----------------------------------------------------------------------------*/
.header {width: 1000; height: 150px; background: #FFE680;
}
/* Middle
-----------------------------------------------------------------------------*/
.content {width: 1000px; height: 500px; background: #fff;
}
/* Footer
-----------------------------------------------------------------------------*/
.footer {
height: 100px;
background: #BFF08E;
}
Открывается пустая страница - 123- без стилей... Помогите найти ошибку.... СП!
|