I've searched in "google" a lot but I have not found a perfect answer. I've seen many questions in "stackoverflow" too but these do not describe my problem.
Fatal error: Call to undefined function mysqli_connect() and Fatal error: mysqli_connect() these two question are close to my problem,but these are not solving my problem,anyway my problem is:
I've written php
code which will connect my mysql database
server.
<?php
echo "entering db";
$link=mysqli_connect('localhost','root','qwerty');
echo "entered";
?>
NOTES :
I've edited
- extension_dir = "C:\PHP\ext"
- extension=php_mysqli.dll
result of
ini_set('display_errors', 1); error_reporting(E_ALL)** ; is the same **Fatal error: Call to undefined function mysqli_connect()
I have executed echo 'ini: ', get_cfg_var('cfg_file_path'); and its displaying C:\PHP\php.ini
I am using Apache 2.2.11
and PHP 5.2.17
and MySQL 5.5
does anyone have any idea,whats wrong there?
- And I've "PHP_MYSQLI.DLL" In EXT folder.
EDIT :
surprisingly there is no information about database server in phpinfo()
.can anyone tell me now what is the problem.
EDIT 2:
which one to download non thread safe or thread safe..i have downloaded non thread safe