« 1 2» Pages: ( 1/2 total )
本页主题: 问下懂PHP的:本机测试程序总有错误提示 打印 | 加为IE收藏 | 复制链接 | 收藏主题 | 上一主题 | 下一主题

Pink
粉粉粉粉努力呦
级别: 贵宾


精华: 0
发帖: 208
威望: 244 点
金钱: 5161 静电币
支持度: 0 点
在线时间:11(小时)
注册时间:2002-07-11
最后登录:2007-09-22

 问下懂PHP的:本机测试程序总有错误提示

本机测试程序总有错误提示
Notice: Use of undefined constant url - assumed 'url' in d:\program files\easyphp1-7\www\zb\lib.php on line 772

Notice: Use of undefined constant sitename - assumed 'sitename' in d:\program files\easyphp1-7\www\zb\lib.php on line 773

Notice: Use of undefined constant session_path - assumed 'session_path' in d:\program files\easyphp1-7\www\zb\lib.php on line 774

Notice: Use of undefined constant session_view_size - assumed 'session_view_size' in d:\program files\easyphp1-7\www\zb\lib.php on line 775

Notice: Use of undefined constant session_vote_size - assumed 'session_vote_size' in d:\program files\easyphp1-7\www\zb\lib.php on line 776

Notice: Use of undefined constant login_time - assumed 'login_time' in d:\program files\easyphp1-7\www\zb\lib.php on line 777

Notice: Use of undefined constant nowconnect_enable - assumed 'nowconnect_enable' in d:\program files\easyphp1-7\www\zb\lib.php on line 778

Notice: Use of undefined constant nowconnect_refresh_time - assumed 'nowconnect_refresh_time' in d:\program files\easyphp1-7\www\zb\lib.php on line 779

Notice: Use of undefined constant nowconnect_time - assumed 'nowconnect_time' in d:\program files\easyphp1-7\www\zb\lib.php on line 780

Notice: Use of undefined constant enable_hangul_id - assumed 'enable_hangul_id' in d:\program files\easyphp1-7\www\zb\lib.php on line 781

Notice: Use of undefined constant check_email - assumed 'check_email' in d:\program files\easyphp1-7\www\zb\lib.php on line 782

Notice: Use of undefined constant memo_limit_time - assumed 'memo_limit_time' in d:\program files\easyphp1-7\www\zb\lib.php on line 783

Notice: Use of undefined constant memo_limit_time - assumed 'memo_limit_time' in d:\program files\easyphp1-7\www\zb\lib.php on line 784

Notice: Use of undefined constant memo_limit_time - assumed 'memo_limit_time' in d:\program files\easyphp1-7\www\zb\lib.php on line 784

Notice: Use of undefined constant use_formmail - assumed 'use_formmail' in d:\program files\easyphp1-7\www\zb\lib.php on line 381

Notice: Use of undefined constant skinname - assumed 'skinname' in d:\program files\easyphp1-7\www\zb\lib.php on line 388

Notice: Undefined variable: script in d:\program files\easyphp1-7\www\zb\lib.php on line 419

Notice: Use of undefined constant header_url - assumed 'header_url' in d:\program files\easyphp1-7\www\zb\lib.php on line 423

Notice: Use of undefined constant header - assumed 'header' in d:\program files\easyphp1-7\www\zb\lib.php on line 424




这样我还需要安装什么才可以呢?
用的是easyphp做测试的
Posted: 2004-07-24 15:55 | [楼 主]
小神
我不要头衔
级别: 贵宾


精华: 14
发帖: 15287
威望: 2803 点
金钱: 6689 静电币
支持度: 4413 点
在线时间:348(小时)
注册时间:2002-08-29
最后登录:2008-03-14

 

错的那几行能给我们看看么?
Posted: 2004-07-24 17:00 | 1 楼
小神
我不要头衔
级别: 贵宾


精华: 14
发帖: 15287
威望: 2803 点
金钱: 6689 静电币
支持度: 4413 点
在线时间:348(小时)
注册时间:2002-08-29
最后登录:2008-03-14

 

程序调用了一个没有定义的数组索引。一般来说,是在程序不够严谨的时候才会出现这样类型的问题,但是不影响程序的运行。
可以在程序中加入程序 error_reporting(0); 关闭该提示,或者设置php.ini中error display 一节;也可以预先初始化出错的变量。
Posted: 2004-07-24 17:05 | 2 楼
Pink
粉粉粉粉努力呦
级别: 贵宾


精华: 0
发帖: 208
威望: 244 点
金钱: 5161 静电币
支持度: 0 点
在线时间:11(小时)
注册时间:2002-07-11
最后登录:2007-09-22

 

阿。那装的时候是

MySQL-DB Select
Error!!!

和那个没关系呀?这个可是数据库的问题?
Posted: 2004-07-24 17:46 | 3 楼
Pink
粉粉粉粉努力呦
级别: 贵宾


精华: 0
发帖: 208
威望: 244 点
金钱: 5161 静电币
支持度: 0 点
在线时间:11(小时)
注册时间:2002-07-11
最后登录:2007-09-22

 

算了。不晓得如何了//与数据库连接错误也
Posted: 2004-07-24 17:47 | 4 楼
小神
我不要头衔
级别: 贵宾


精华: 14
发帖: 15287
威望: 2803 点
金钱: 6689 静电币
支持度: 4413 点
在线时间:348(小时)
注册时间:2002-08-29
最后登录:2008-03-14

 

数据库没选择正确
一般程序中会有个类似config.php的配置文件的
你看一下
程序应该会带说明才对
Posted: 2004-07-24 17:47 | 5 楼
Pink
粉粉粉粉努力呦
级别: 贵宾


精华: 0
发帖: 208
威望: 244 点
金钱: 5161 静电币
支持度: 0 点
在线时间:11(小时)
注册时间:2002-07-11
最后登录:2007-09-22

 

config它是自行创建的。。。郁闷哇
Posted: 2004-07-24 21:01 | 6 楼
小神
我不要头衔
级别: 贵宾


精华: 14
发帖: 15287
威望: 2803 点
金钱: 6689 静电币
支持度: 4413 点
在线时间:348(小时)
注册时间:2002-08-29
最后登录:2008-03-14

 

啊?不可能有这么聪明的php程序吧
你告诉我是什么程序
Posted: 2004-07-24 21:09 | 7 楼
Pink
粉粉粉粉努力呦
级别: 贵宾


精华: 0
发帖: 208
威望: 244 点
金钱: 5161 静电币
支持度: 0 点
在线时间:11(小时)
注册时间:2002-07-11
最后登录:2007-09-22

 

zeroboard
Posted: 2004-07-25 10:54 | 8 楼
小神
我不要头衔
级别: 贵宾


精华: 14
发帖: 15287
威望: 2803 点
金钱: 6689 静电币
支持度: 4413 点
在线时间:348(小时)
注册时间:2002-08-29
最后登录:2008-03-14

 

怎么是韩国人作的
Posted: 2004-07-25 12:32 | 9 楼
小神
我不要头衔
级别: 贵宾


精华: 14
发帖: 15287
威望: 2803 点
金钱: 6689 静电币
支持度: 4413 点
在线时间:348(小时)
注册时间:2002-08-29
最后登录:2008-03-14

 

我看了一下代码,那个config.php是根据你填的内容写的啊
你确定你的内容都对?


Copy code
<?
    include"lib.php";
    head();
    if(file_exists("config.php")) error("config.php文件已经存在.<br><br>若要重新安装,安装前请删除config.php文件!");
?>

<script>
function check_submit()
{
if(!write.hostname.value)
{
  alert("请输入主机名");
  write.hostname.focus();
  return false;
}
if(!write.user_id.value)
{
  alert("请输入MySQL用户名");
  write.user_id.focus();
  return false;
}
if(!write.dbname.value)
{
  alert("请输入MySQL数据库名");
  write.dbname.focus();
  return false;
}
return true;
}
</script>
<body bgcolor=#000000 text=#ffffff>
<br><br><br>
<div align=center>
<table cellpadding=0 cellspacing=0 width=600 border=0>
<tr>
<td height=30 colspan=3><img src=images/inst_top.gif></td>
</tr>
<tr>
<td>
  <br>
  <img src=images/inst_step2.gif>
</td>
</tr>
<tr>
<td>
<br>
<form name=write method=post action=install_ok.php onsubmit="return check_submit();">
<table border=0 cellpadding=2 cellspacing=0>
<tr>
<td width=90 align=right style=font-family:Tahoma;font-size:8pt;>主机名</td>
<td width=90><input type=text name=hostname value='localhost' style=font-family:Tahoma;font-size:8pt;></td>
<td width=300>请输入数据库的主机名.</font></td>
</tr>
<tr>
<td align=right style=font-family:Tahoma;font-size:8pt;>MySQL用户名</td>
<td><input type=text name=user_id style=font-family:Tahoma;font-size:8pt;></td>
<td>请输入MySQL的ID</font></td>
</tr>
<tr>
<td align=right style=font-family:Tahoma;font-size:8pt;>MySQL密码</td>
<td><input type=password name=password style=font-family:Tahoma;font-size:8pt;></td>
<td>请输入MySQL数据库的密码</font></td>
</tr>
<tr>
<td align=right style=font-family:Tahoma;font-size:8pt;>MySQL数据库名</td>
<td><input type=text name=dbname style=font-family:Tahoma;font-size:8pt;></td>
<td>请输入MySQL数据库名</font></td>
</tr
><tr>
<td colspan=3 align=center><br><br><input type=image src=images/inst_b_2.gif border=0 align=absmiddle></td>
</tr>
</form>
</table>
<br>
</td>
</tr>
</table>

<?
    foot();
?>
Posted: 2004-07-25 12:37 | 10 楼
Pink
粉粉粉粉努力呦
级别: 贵宾


精华: 0
发帖: 208
威望: 244 点
金钱: 5161 静电币
支持度: 0 点
在线时间:11(小时)
注册时间:2002-07-11
最后登录:2007-09-22

 

没错呀。。就是在本机的EASYPHP上不行。。服务器上就装了好多次的。。
Posted: 2004-07-25 18:09 | 11 楼
狗狗
加菲's
级别: 管理员


精华: 10
发帖: 4859
威望: 10314 点
金钱: 10285 静电币
支持度: 19830 点
在线时间:1420(小时)
注册时间:2001-11-20
最后登录:2024-02-11

 

Quote:
下面是引用小神于2004-07-24 9:09 PM发表的 :
啊?不可能有这么聪明的php程序吧
你告诉我是什么程序


很多都是自动创建的
Posted: 2004-07-25 18:58 | 12 楼
小神
我不要头衔
级别: 贵宾


精华: 14
发帖: 15287
威望: 2803 点
金钱: 6689 静电币
支持度: 4413 点
在线时间:348(小时)
注册时间:2002-08-29
最后登录:2008-03-14

 

Quote:
下面是引用狗狗于2004-07-25 6:58 PM发表的 :


很多都是自动创建的

84
我以为数据库地址之类的都是程序自己探测出来的
Posted: 2004-07-25 19:30 | 13 楼
Pink
粉粉粉粉努力呦
级别: 贵宾


精华: 0
发帖: 208
威望: 244 点
金钱: 5161 静电币
支持度: 0 点
在线时间:11(小时)
注册时间:2002-07-11
最后登录:2007-09-22

 

我一个网友的叶子出现这样的问题
http://cutehome.kegirl.com/zboard/zboard.php?id=autolink
是什么原因呢?
Posted: 2004-07-30 20:43 | 14 楼
« 1 2» Pages: ( 1/2 total )
帖子浏览记录 版块浏览记录
狗狗静电BBS - wwW.DoGGiEhoMe.CoM » 电脑全方位 Computer Guide

沪ICP备05008186号
Powered by PHPWind Styled by MagiColor