Page 1 of 1

How to use a php include in header.txt file

Posted: Tue Aug 21, 2007 5:43 am
by ravetildon1
Script URL: http://www.hilaryshepherd.com/links/links.php
Version of script: 1.03
Hosting company: 1and1.com

I wanted to include a php include in the header file. What is the proper way to do this?

Here is what I tried to do:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="images/style.css" type="text/css" />
<title>Real Estate Marketing In Tracy, CA Notary Public</title>
</head>
<?php include("includes/top-header.php"); ?>

Posted: Mon Aug 27, 2007 10:29 am
by Klemen
Don't have the time to test it, but you can try renaming header.txt to header.php and change all instances of header.txt to header.php in LikMn PHP files and see if that helps. If not you will probably have to do it the old-fashioned way (copy/paste HTML into header.txt)