1
vote
2answers
980 views

php-cgi shows mysql modules but throws “Call to undefined function mysql_connect()” error

I have compiled PHP 5.3.6 from source on Mac OS X 10.6 using the --with-mysqli=mysqlnd option. The output of both php -m and php-cgi -m show the mysqli and mysqlnd modules. When I run a simple test ...