Problem with running php script using mysql on tomcat
<p>I am using tomcat 6 with JavaBridge. I have stored my php script in the following location.</p>

<pre><code>C:\Program Files\apache-tomcat-6.0.26\webapps\JavaBridge\project\test.php
</code></pre>

<p>In test.php I am using curl and mysql. The php.ini in JavaBridge is stored in the following location</p>

<pre><code>C:\Program Files\apache-tomcat-6.0.26\webapps\JavaBridge\WEB-INF\cgi\php.ini 
</code></pre>

<p>and its contents are - </p>

<pre><code>extension_dir="C:\Program Files\apache-tomcat-6.0.26\webapps\JavaBridge\WEB-INF\cgi\x86-windows\ext"
include_path="C:\Program Files\apache-tomcat-6.0.26\webapps\JavaBridge\WEB-INF\pear;."
</code></pre>

<p>there is also a config file called mysql.ini whose contents are -</p>

<pre><code>extension = php_mysql.dll
</code></pre>

<p>I had also installed wamp earlier so I copied all the dll's from C:\wamp\bin\php\php5.3.0\ext to C:\Program Files\apache-tomcat-6.0.26\webapps\JavaBridge\WEB-INF\cgi\x86-windows\ext</p>

<p>When I start tomcat and run my script I get the following error - </p>

<pre><code>Fatal error: Call to undefined function mysqli_connect() in C:\Program Files\apache-tomcat-6.0.26\webapps\JavaBridge\project\test.php on line 534
</code></pre>

<p>Please help.</p>
