菜鸟求助php连接数据库问题

WBOY
Release: 2016-06-23 14:08:58
Original
847 people have browsed it

我是新手,照着书弄,连接的时候就一直有这个问题
Fatal error: Call to undefined function mysql_connect()

然后网上查了好多,都没有解决。

现在的状况是

一堆.dll也放到system32目录下了,
apache也重启了,还是有这个问题。无语了,哪里没有弄对?


回复讨论(解决方案)

<?phpphpinfo();
Copy after login

贴出
Configuration File (php.ini) Path 
Loaded Configuration File  
两项

哥,太专业了,有没有草根一点的说法。。。

嗯,你是够专业的!还在玩这老古董
继续贴出 extension_dir 项

这么打击。。。。你不是还版主么,更专业。

extension_dir = "D:/Apache22/cgi-bin/ext/"

还是先按个集成的环境做测试吧,熟悉点之后在自己配环境
不过PHP5.1有点老,
MySQL5.6有点新

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!