为什么Call to undefined function mysql_connect()我设置没有问题

huzhangyou 2006-02-21 11:08:32


;extension=php_msql.dll

extension=php_mysql.dll

;extension=php_oci8.dll



首先是去掉;extension=php_mysql.dll前面的“;”(;为注释)
第二步是将C:\php\ext中的php_mysql.dll复制到C:\WINDOWS(C:\WINNT)中即可,
保存并重起Apache。

还是提示Call to undefined function mysql_connect()

我是用phpinfo()没有mysql的显示
大侠帮忙看看为什么?
谢谢
...全文
465 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
x8086 2006-02-23
  • 打赏
  • 举报
回复
/* 弹出变量 */
if (!ini_get("register_globals")) {
extract( $_POST ,EXTR_SKIP);
extract( $_GET ,EXTR_SKIP);
}

自己去查下这几个函数。
huzhangyou 2006-02-22
  • 打赏
  • 举报
回复
if ($action == "install"){
echo "nihao";
}


else {
?>
<td height="107">
<div align="center"><a href="install.php?action=install">test</a></div>
</td>
<?
}
?>

我是用localhost/install.php?action=install连接
为什么怎么也不回运行到 echo "nihao"; 啊
什么原因啊?
bigluckyfox 2006-02-22
  • 打赏
  • 举报
回复
我一向推荐初学者使用PHP4进行环境配置:)
huzhangyou 2006-02-22
  • 打赏
  • 举报
回复
上面的两位兄弟 你们说的方法都不行
不知道是不是php5的bug不
真的有点麻烦
我已经重新使用php4.0配置了
已经成功了
谢谢
zairwolft 2006-02-22
  • 打赏
  • 举报
回复
copy libmysql还不行?
huzhangyou 2006-02-22
  • 打赏
  • 举报
回复
已经搞定了
原来是register_globals没有打开
icake 2006-02-22
  • 打赏
  • 举报
回复
你把GD库打开,如果phpinfo(); 能显示 GD什么的(那个表啦)就是目录没错,如果不能显示GD就就是那个DIR目录错了. 把="./" 改成绝对路径试试.
如果目录对的话,照你的设置,把IIS或APACHE重新启动,不是重启机器是重启此服务
huzhangyou 2006-02-21
  • 打赏
  • 举报
回复
I had a similar problem with PHP5 and IIS. I had to copy the php_mysql.dll
to my c:\winnt folder (and/or c:\php\ -- it didn't like the ext folder). I
assume you have enabled it in your php.ini?

try to put a copy of "libmysql.dll" in windows/system32 folder...

I did both of these suggestions and it still doesn't work. I also It works
fine in php4 but not php5.
- I had a similar problem with PHP5 and IIS. I had to copy the php_mysql.dll
to my c:\winnt folder (and/or c:\php\ -- it didn't like the ext folder). I
assume you have enabled it in your php.ini?
- try to put a copy of "libmysql.dll" in windows/system32 folder...

Thanks for your help. I think I'll just stick with php4. -
meployhar [at] hotmail.com


在国外网站找到这个
看来只能使用php4了郁闷

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧