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

Re: php4 isn't finding mysql routines

The surest way to solve any problem is to ask a question about it...
Apparently it doesn't matter how long you sit on the question, either.
I waited over an hour, working on things, but 30 mins after I send the
question, I find that I need a 'dl("mysql.so")' in the code (found by
installing the php3 packages and reading that documentation).

> I've just finished installing PHP4 and PHP4-MySQL.  I added the module in
> to apache...
>   LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
> And now php files seem to get executed correctly.  However, as soon as they
> try to access a MySQL database, it appears the functions are not found:
>   Fatal error: Call to undefined function: mysql_pconnect() in ./mysql.php3
>   on line 15
> I can't find anything in the documentation about this.  The "php4-mysql"
> package has a "mysql.so" library file in it, but zero documentation about
> how to use it so I assume it should work out-of-the-box.
> Is there something else I need to do?

                                 ( bcwhite@precidia.com )

                    No man dies except he who has not lived.

Reply to: