Ошибка в Localhost
У меня есть код в index.php
<?php $title ="League of Draven" ?>
<?php require_once $_SERVER["DOCUMENT_ROOT"] . '/inc/head.php';?>
<?php require_once $_SERVER["DOCUMENT_ROOT"] . '/inc/menu.php';?>
<?php require_once $_SERVER["DOCUMENT_ROOT"] . '/inc/footer.php';?>
в head.php
<!DOCTYPE html>
<html>
<head>
<title> <?php print $title ?></title>
<link rel="stylesheet" type="text/css" href="/css/style.css"/>
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
</head>
<body>
когда я пытаюсь открыть в своем браузере, я нахожу эту ошибку:
Warning: require_once(C:/xampp/htdocs/inc/head.php): failed to open stream: No such file or directory in C:\xampp\htdocs\Myshop\index.php on line 6
Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs/inc/head.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\Myshop\index.php on line 6