RE: [PHPLIB] Fatal error with MySQL From: Alan Lee (alee <email protected>)
Date: 11/05/99

Are you sure that you have prepend.php3 getting prepended at the top of
all your web documents?
you can do that in

.htaccess,
http.conf, or
php3.ini (auto_prepend_file = prepend.php3 AND
          include_path = .:./include:../include:/www/php )

For the php3.ini to work, the thing will search in the listed
directories for the file to prepend, so make sure you mention the one in
which phplib is installed)

I am using php4 so i dont remember how the apache directives go when
using htaccess or http.conf (they are different in php3 than php4)

Allen

> -----Original Message-----
> From: Shan Vosseller [mailto:updates <email protected>]
> Sent: Friday, November 05, 1999 3:22 PM
> To: phplib <email protected>
> Subject: [PHPLIB] Fatal error with MySQL
>
>
> I just installed phplib on top of mod_php3. Regular php works, phplib
> works, but it cannot link to my MySQL database. I've read
> through the docs,
> setup the appropriate file settings, restarted apache, made
> sure the tables
> exist in mysql, but still nothing. Here is the error that I get:
>
> Fatal error: Call to unsupported or undefined function
> mysql_pconnect() in
> db_mysql.inc on line 73
>
> I verified that the user (in local.inc) is able to connect by
> issuing raw
> sql commands.
>
> I checked the user, host, database, password fields in local.inc and
> db_mysql.inc. php.ini is set properly.
>
> local.inc reads
>
> class DB_Example extends DB_Sql {
> var $Host = "localhost";
> var $Database = "mydatabase";
> var $User = "myuser";
> var $Password = "mypassword";
> }
>
> I have not made any other changes to local.inc. Should there be other
> changes?
>
> Any help?
>
> -Shan

>
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.