Fatal error: Cannot redeclare htmtocode() (previously declared in D:\www_local\mytest\conn.php:7) in D:\www_local\mytest\conn.php on line 10
这个错误提示出现在写分页文件page.php时
google翻译这句话的意思是“致命错误:不能重新声明htmtocode()”
第10行的代码为
<body>
<?php
//连接数据库
include("conn.php");
//引入分页类文件
include("page.class.php");
?>
在网上搜了一下,可能的原因是:两个页面程序文件引用而导致在内存中被重复加载时引发冲突
解决方法:用include_once()代替include
相关文章
- VS与SQL Server连接时出现(provider: TCP Provider, error: 0)错误时的解决方法
- 编译boost程序出现如下错误fatal error LNK1104: cannot open file 'libboost_system-vc100-mt-gd-1_54.lib'的解决方法
- Ubuntu 14.04 64bit 系统下打开PHPadmin时出现缺少mysqli|mysql 扩展的解决方法(php5)
- 写hexo博客时报错Template render error: (unknown path)出现的原因及解决方法
- 打开Modelsim,出现fatal license error的解决方法
- KEIL软件中编译时出现的Error L6200E: symbol multiply defined ...的解决方法
- php解决乱码问题时,出现Cannot modify header information问题的解决方法
- fatal error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "StdAfx.h"”? 解决方法
- 配置caffe的python环境时make pycaffe提示fatal error: numpy/arrayobject.h No such file or directory解决方法
- Maven打包时出现“Show Console View”错误弹出框,错误详情为“An internal error has occurred. java.lang.NullPointerException”的解决方法