Hi, I ran into trouble trying to use the include function.
Here's the code, which I think should work,

index.html

<html>
<?php include('head.php'); ?>
<body>
<div id="header"></div>
</body>
</html>

head.php

<head>
<title>Name</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>

index.html will not be parsed by default as a php file. If you rename it to index.php it will work.

Yep, that did it... I feel kinda stupid now :)

tnks a bunch!

If you rename it to index.php it will work.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.