[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mysql question..



In Debian the mysql support for PHP is a seperate file called mysql.so that has to be loaded in your PHP source file.
e.g.
:
	dl("mysql.so");
:
will load the mysql.so module
If you don`t want this you have to recompile PHP and make a PHPLIB with a built-in mysql support

At Mon, 5 Jun 2000 21:37:52 -0500 (EST),
 <robert@mail.provision.net> wrote:
> 
> Hi all,
> I have just installed php3 which seams to be working fine then php3-mysql
> on a Debian 2.2 system. I then downloaded and installed keystone-0_71_02.
> I configured the keystone.conf file correctly I believe and the main
> index.php3 page displays fine.
> 
> The problem is after I enter the Username and Password I get the following
> error:
> 
> Fatal error: Call to unsupported or undefined function mysql_pconnect() in
> ./mysql.php3 on line 15
> 
> Line 15 is as follows: (also see below..)
> if (! mysql_pconnect($dbhost,$dbuser,$dbpasswd)) {
> 
> The keystone FAQ states that this is likely due to either an old php3 or
> that I dont have MySQL support compiled in. Since I have a current php3
> version and I have php3-mysql this doesnt sound right. Does anyone have
> any suggestions? Am I missing something here?
> 
> 
> thanx
> -Rob
> 
> 
> Full function:
> --------------
> function db_connect($target) {
>   global $dbhost,$dbname,$dbuser,$dbpasswd,$server,$port,$options,$tty,$conn;
>     if (! mysql_pconnect($dbhost,$dbuser,$dbpasswd)) {
> 	report_error("db_connect",mysql_errno(),mysql_error());
>     }
> }
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null



Reply to: