Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

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

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...