Re: PHP/Mysql

From: Date: Fri, 30 Nov 2001 15:25:49 +0000
Subject: Re: PHP/Mysql
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-76212@lists.php.net to get a copy of this message
Fatal error: Call to undefined function: mysql_connect() means to things. php is not built with integrated mysql support, or php cannot find php_mysql.so on your comp. What is the value of php.ini variable include_path or something similar. Regards, Andrey Hristov ----- Original Message ----- From: "Riccardi Moreno" <m.riccardi@webtrade.it> To: <php-db@lists.php.net> Sent: Friday, November 30, 2001 5:21 PM Subject: [PHP-DB] PHP/Mysql > Hello, > I've got cobalt raq4 with php(work) and mysql(work) but when I try to > connect via mysql_connect() this error happens: > Fatal error: Call to undefined function: mysql_connect() > This is my php.ini: > [MySQL] > mysql.allow_persistent = On ; allow or prevent persistent link > mysql.max_persistent = -1 ; maximum number of persistent > links. -1 means no limit > mysql.max_links = -1 ; maximum number of links > (persistent+non persistent). -1 means no > mysql.default_port = ; default port number for > mysql_connect(). If unset, > ; > mysql_connect() will use the $MYSQL_TCP_PORT, or > ; entry in > /etc/services, or the compile-time defin > ; (in that > order). Win32 will only look at MYSQL_P > mysql.default_host = ; default host for > mysql_connect() (doesn't apply in safe mode) > mysql.default_user = ; default user for > mysql_connect() (doesn't apply in safe mode) > mysql.default_password = ; default password for > mysql_connect() (doesn't apply in safe mode) > ; Note that > this is generally a *bad* idea to store > ; in this > file. *Any* user with PHP access can run > ; 'echo > cfg_get_var("mysql.default_password")' and > ; password! > And of course, any users with read acc > ; file will > be able to reveal the password as well. > And this is my httpd.conf: > # Extra Modules > #LoadModule php_module > #LoadModule php3_modul > LoadModule php4_module > > # because mod_perl lea > #LoadModule perl_modul > > # make sure that this > LoadModule ssl_module > > # Reconstruction of t > # (static and shared > # [WHENEVER YOU CHANG > #ClearModuleList > > # Extra Modules > AddModule mod_php4.c > #AddModule mod_php.c > #AddModule mod_php3.c > #AddModule mod_perl.c > #AddModule mod_casp2.c > I thing that it's all ok but it doesn't work. > Any Ideas????? > Hi > > -------------------------------------------- > > - Moreno Riccardi > > -------------------------------------------- > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#76212) next »