Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have a quite annoying error with php, mysql. I've configured all the stuff properly and phpinfo() list all the stuff properly. I wrote a simple PHP page and check, works fine.

Then I want to configure MySql. Enable all the extension on the php.ini and try to view the following page.

PHP
<?php
	$con = mysql_connect("localhost", "root", "sa");
	if (!$con) {
		die('Could not connect: ' . mysql_error());
	}
	else {
		echo 'Connected successfully';
	}
?> 


But it didn't work. I check the appache error log and found the following.

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mysqli.dll' - The specified procedure could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_pdo_firebird.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_pdo_mssql.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_pdo_oci.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_pdo_oci8.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_pdo_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0


All the extension are in correct path too. Somehow it didn't work. Is anyone of you have a solution for this...
Posted
Comments
Mohibur Rashid 22-May-12 2:38am    
I am interested about the error that you received on die
CodingLover 22-May-12 3:06am    
Nothing printed actually. It simply timed-out.
Mohibur Rashid 22-May-12 5:14am    
simply run this statement and see what does it do,

$con = mysql_connect("localhost", "root", "sa") or die("Connection failed");
CodingLover 22-May-12 5:58am    
Same thing I have done above. But it is nothing worked, its timed-out. Seems this is something to do with configurations, I am using Win7 64bit
Mohibur Rashid 22-May-12 18:51pm    
DID YOU TRY TO CONNECT WITH PHPMYADMIN

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900