hi everybodyam having a problem connecting to my localhost when testing my pageit keeps telling me that there is an errorFatal error: Cannot redeclare header() in C:\wamp\www\mysite\includes\header.php on line 45below is my file<?phpfunction 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> 解决方案 这篇关于致命错误:无法在第45行的C:\ wamp \ www \ mysite \ includes \ header.php中重新声明header()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-24 07:18