Fatal error: Call to undefined function: mysql_connect()


If you Get this Error (Fatal error: Call to undefined function: mysql_connect())
Check your Log files..

I was getting these Error Messages too,which was the main cause.
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php/domxml.so' - /usr/lib/php/domxml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php/imap.so' - /usr/lib/php/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php/mbstring.so' - /usr/lib/php/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php/mysql.so' - /usr/lib/php/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php/pgsql.so' - /usr/lib/php/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0

The Reason that we are getting these Errors is very simple.
The PHP4 is not able to read the files mysql.so,..and the others.

The simple change that I made was just to rename the folder from /usr/lib/php4 to /usr/lib/php.

COUNTER