Call to undefined function mysql_connect() with PHP 5.3, Apache2.2., MySQL5 on Window
Posted on 2010-01-09
Hi, I tried a tough thing for 3 days. I am currently setting the php to mysql environment. I run
mysql_connect('127.0.0.1', 'user', 'password');
then, the error is:
Fatal error: Call to undefined function mysql_connect() in D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\index.php on line 3
I looked up my phpinfo() which got the following:
SERVER_SOFTWARE Apache/2.2.11 (Win32) PHP/5.3.1
Server API Apache 2.0 Handler
Configuration File (php.ini) Path C:\windows
Version mysqlnd 5.0.5-dev - 081106 - $Revision: 289630 $
Command buffer size 4096
Read buffer size 32768
Read timeout 31536000
Collecting statistics Yes
Collecting memory statistics No
I also tried PHP5.2, Apache 2.2.11, Apache 2.2.12, Apache 2.2.13, Apache 2.2.14, MySQL5.0 with all no luck of them.
I already set the environment variables Path to C:/PHP5/ext.
php.ini also rewrite extension_dir and un-comment php_mysql.dll
Everything I did is what still get the same "Call to undefined function mysql_connect()"
I would appreciate any possible solution !!!!
Help me out!