[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] PHP and MYSL connection errors..anyone have any idea?
- Subject: Re: [cobalt-developers] PHP and MYSL connection errors..anyone have any idea?
- From: "Joel Holtzman" <joel@xxxxxxxxxxxxxx>
- Date: Mon Jan 21 22:07:00 2002
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
"> 2- check php.ini (probable somewhere like etc/httpd/. It needs to have
unix extention "extension=mysql.so" uncommented."
That is interesting that you mention that. In the php.ini. what should the
path be for the dynamic extensions?
Mine by default is ./
if I point it to /usr/lib for example where (for example only) gdlib.so is
(If I want to use gd library, that is a pseudo file name in this example)
all I have to do is make sure the path is to that dirctory and then add
extension=gdlib.so
And without having to re ./configure I can use Gd library?
do I need to use
dl("module.so");
In short, how do I load dynamic extensions? lol
Php.net didn't help me understand it too well
Thanks, just had to ask, if I may
Joel
----- Original Message -----
From: Michael Jaffrey <mike@xxxxxxxxxxxxxxxxxxxxxxxxx>
To: <cobalt-developers@xxxxxxxxxxxxxxx>
Sent: Friday, January 11, 2002 4:24 AM
Subject: Re: [cobalt-developers] PHP and MYSL connection errors..anyone have
any idea?
> > On Thursday 10 January 2002 05:45 pm, Jamie Rossi wrote:
>
> > > The error I get is this>
> > > Fatal error: Call to undefined function: mysql_connect() in
> > > /home/sites/site22/web/mambo/classes/database.php on line 25
>
> I had this same problem on a qube3.
>
> couple of things to do:
>
> 1- use this code to check that php has mysql support, <?php phpinfo(); ?>
>
> 2- check php.ini (probable somewhere like etc/httpd/. It needs to have
unix extention "extension=mysql.so" uncommented.
>
> 3-I have found that even if php is compiled with mysql support you may
still need to open a TCP port. I use this in my code:
> mysql_connect("localhost:/var/lib/mysql/mysql.sock","mysql","secret");
>
> where "mysql" is the dbname and "secret" is the password. I would check
the path to mysql.sock as I am not sure where it is on a raq.
>
> Hope this helps
>
> Mike
>
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
>