Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
260 views
in Technique[技术] by (71.8m points)

php - Fatal error: Call to undefined function mysqli_connect()

I have installed WAMP. I am using Tomcat 6 to run my PHP scripts. I am also using JavaBridge.war and I have copied my php scripts into webappJavaBridgeproject. I have removed the semicolon from php.ini file before the statements

extension=php_mysqli.dll
extension=php_mysql.dll

I have added C:wampin into my PATH env variable. I have copied all dll's from C:wampinphpphp5.3.0ext into C:windowssystem32

I am still getting this error.

Fatal error: Call to undefined function mysqli_connect() in C:Program Filesapache-tomcat-6.0.26webappsJavaBridgeprojectpf_query.php on line 534

I don't get this error when I run my PHP script from Apache 2.2.11 included in the WAMP package.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Did you edit the correct php.ini file?

<?php echo 'ini: ', get_cfg_var('cfg_file_path');

(executed in the tomcat6 environment) can tell you.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...