i'm a XAMPP newbie and have a problem using the PHP-Command include.
I want to include this file:
- Code: Select all
<header>
<h1>My Pages.</h1>
</header>
<div id="sidebar">
<div id="sidesec">
The Sidebar of Doom!
<br>
-------------------------
<br>
<span id="sideitem"><a href="#">Home</a></span>
<br>
<span id="sideitem"><a href="#">About me.</a></span>
</div>
<div id="sidesec">
Lorem Ipsum
<br>
dolor sit amet,
</div>
</div>
into this file:
- Code: Select all
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width" />
<title>About me.</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<?php include(http://localhost/test/Skeleton.php); ?>
<div id="main">
<div id="post1" margin-top="5px">
<div id="ut">
<h2>Lorem Ipsum</h2>
Dolor sit amet.
</div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas tincidunt sodales tellus et condimentum. Vestibulum ac magna ac enim venenatis porttitor vel a lorem. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi placerat massa fermentum justo tempor in rutrum erat tempor. Phasellus tempus rhoncus odio, id mattis ipsum viverra id. Fusce in lectus vel dolor interdum laoreet. In ut mi velit.
</div>
</div>
</div>
</body>
</html>
but it doesn't seem to work (i.e. the content of the .php file is not displayed.).
When I use the Firefox Debugger to check the code the include command turned into this:
- Code: Select all
<!--?php include(http://localhost/test/Skeleton.php); ?-->
Why could this be happening? XAMPP is installed (I see the orange index page) and php is up and running.
Thanks in advance,
CasualCache