4Muki4
HOROHOROHORO
- Joined
- May 1, 2012
- Messages
- 757
- Reaction score
- 70
hi
i'm currently trying to learn php but when im trying to include file it wont load it, it gets white and shit because css isn't loaded. currently using uniserver 8.9.x
code before cutting it (index.php):
code when it fucks up:
i'm currently trying to learn php but when im trying to include file it wont load it, it gets white and shit because css isn't loaded. currently using uniserver 8.9.x
code before cutting it (index.php):
Code:
<!doctype html>
<html>
<head>
<title>title</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<h1 class="logo">Logo</h1>
<nav>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="downloads.php">Downloads</a></li>
<li><a href="forum.php">Forum</a></li>
<li><a href="contact.php">Contact us</a></li>
</ul>
</nav>
<div class="clear"></div>
</header>
<div id="container">
<aside>
<div class="widget">
<h2>Widget Header</h2>
<div class="inner">
Widget contents
</div>
</div>
</aside>
</div>
<footer>
© #.org 2015. All rights reserved.
</footer>
</body>
</html>
Code:
<!doctype html>
<html>
<?php include 'includes/head.php'; ?>
<body>
<header>
<h1 class="logo">Logo</h1>
<nav>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="downloads.php">Downloads</a></li>
<li><a href="forum.php">Forum</a></li>
<li><a href="contact.php">Contact us</a></li>
</ul>
</nav>
<div class="clear"></div>
</header>
<div id="container">
<aside>
<div class="widget">
<h2>Widget Header</h2>
<div class="inner">
Widget contents
</div>
</div>
</aside>
</div>
<footer>
© #.org 2015. All rights reserved.
</footer>
</body>
</html>