Click here to Skip to main content
15,902,763 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi everybody

am having a problem connecting to my localhost when testing my page

it keeps telling me that there is an error

Fatal error: Cannot redeclare header() in C:\wamp\www\mysite\includes\header.php on line 45


below is my file

XML
<?php
function header()
{
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>.::mysite::.</title>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<style type="text/css">
<!--
#apDiv1 {
    position:absolute;
    left:154px;
    top:16px;
    width:799px;
    height:170px;
    z-index:1;
}
.headercss {
    border: thin solid #000000;
}
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
-->
</style>
</head>
<body>
<table width="772" border="0" align="center" cellpadding="1" cellspacing="1" class="headercss">
  <tr>
    <td width="788"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','765','height','166','title','header','src','animation/header','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','animation/header' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="765" height="166" title="header">
      <param name="movie" value="animation/header.swf" />
      <param name="quality" value="high" />
      <embed src="animation/header.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="765" height="166"></embed>
    </object></noscript></td>
  </tr>
</table>
<?php
}
?>
</body>
</html>
Posted

1 solution

You may be loading that php file in another file, and php sees the function header() twice.
 
Share this answer
 
Comments
ft85 25-Nov-10 15:14pm    
how can you explain to me ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900