How to use a php include in header.txt file

Problems installing LinkMan?
Post Reply
ravetildon1
Posts: 28
Joined: Tue Mar 07, 2006 5:56 am

How to use a php include in header.txt file

Post 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"); ?>
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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)
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply