View Full Version : need help with php include on header/menu

04-11-2007, 06:02 AM
I'm trying to use the php include for my header, etc on a new site and I'm getting this error message....

Fatal error: Cannot redeclare header() in /home/pnyejnk/public_html/lowcarbjourney/header.php on line 31

What am I doing wrong?

04-11-2007, 01:14 PM
Duh.....i probably didn't give enough info last night. It was late!!

the site is www.lowcarbjourney.com (http://www.lowcarbjourney.com) and I'm just getting it started. There's not much there yet so I was going to do the php includes for the header, menu bar, left bar and right bar.

I thought I followed the instructions by the letter, but obviously not......

The header is saved on page "header.php"
I'm trying it on a page named "myths.php"

04-11-2007, 08:13 PM
The page name (header.php) might be causing conflicts with the html "header". Please redo your page, as "myheader.php" or any other name you like. Of course, change the code in the html page as well.