You are here: PHP not seeing MySQL functions « PHP « IT news, forums, messages
PHP not seeing MySQL functions

Posted by Jonathan Duncan on 10/04/69 11:37

I just got a new web server with RedHat Enterprise Linux 4 on it. It came
with MySQL 4.1.x and PHP 4.3.9 on it. I uninstalled the MySQL 4 and put
MySQL 5 on it. When I run a PHP script that has a DB connection in it I
get:

Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/mysqltest.php on line 5

I check the PHPINFO and see:

Configure Command has '--with-mysql=shared,/usr'

And "dbx" supported databases has 'MySQL'

However, there is no MySQL section.

I checked in the '/etc/php.ini' file and see:

[MySQL]
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off


What is missing that would keep me getting the missing functions error? I
restarted apache of course.

Thanks,
Jonathan

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация