RE: [PHP-DB] Call to undefined function: mysql_pconnect()
| From: | Rick Emery | Date: | Tue, 10 Apr 2001 20:39:24 +0000 |
| Subject: | RE: [PHP-DB] Call to undefined function: mysql_pconnect() | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-8460@lists.php.net to get a copy of this message | ||
I had this same problem. You require not only PHP and MySQL, but there is
another RPM (if using RedHat) that links the two. I don't remember it off
the top of my head, but it is entitle something like "php-mysql.rpm" or
"mysql-php.rpm".
-----Original Message-----
From: Bruno [mailto:burnett@euskalparty.org]
Sent: Tuesday, April 10, 2001 2:00 AM
To: php-db@lists.php.net
Subject: Re: [PHP-DB] Call to undefined function: mysql_pconnect()
Hello,
Here's the code :
if (DB_PCONNECT == true)
{
$connectfunc = "mysql_pconnect";
}
else
{
$connectfunc = "mysql_connect";
}
$this->link = $connectfunc($db_addr, $db_user, $db_pass)
or $this->error("Could not connect to database server.")
mysql_select_db($db_name, $this->link)
or $this->error("Could not select database '$db_name'.")
The line that gives the error is "$this->link = $connectfunc($db_addr,
$db_user, $db_pass)".
If you need more code, please let me know.
Thank you
Bruno
""B. van Ouwerkerk"" <bvo@atz.nl> escribió en el mensaje
news:4.3.2.7.2.20010409102119.00e335c0@pop.atz-hosting.nl...
>
> >I am getting this error when I run a program that tries to access a mySQL
DB
> >trough PHP4. I've read that this error appears when the module for mySQL
> >isn't present.
>
> A bit of code could help.. if it's caused by the wrong .so, you could try
> what happens if you compily PHP with the .so from the mysql source..
>
> I would take a look at the code first.. perhaps try an example.
>
> Bye,
>
>
> B.
>
>
>
>
> --
> 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
>
--
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