Re: mysqli class not found

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

 



What OS are you using? I think that you entered the wrong filename. for
windows i use php_mysqli.dll . Somewhere in php.ini there is a list of
extensions you can use, uncomment the php_mysqli.dll , copy php_mysqli.dll
to the php install directory and change the php.ini extension setting to
your php install directory, that should fix the problem .
On 12/29/05, Erik Saline <esaline@xxxxxxxxxxxxxx> wrote:
>
> Thanks I deleted the new.
> I was following an example in the  book for that.
>
> Now I get the error:
>
> Call to undefined function mysqli_connect() in
> /var/www/cgi-bin/db_connect.php on line 4,
>
> I added extenstion=mysqli.so to my php.ini
>
> Erik
>
> ----- Original Message -----
> From: "PHP Superman" <phpinfolist@xxxxxxxxx>
> To: "Erik Saline" <esaline@xxxxxxxxxxxxxx>
> Cc: <php-general@xxxxxxxxxxxxx>
> Sent: Wednesday, December 28, 2005 6:56 PM
> Subject: Re:  mysqli class not found
>
>
> you are not missing anything, you are actually adding to much. Using "new"
> is for making objects, if you take away the "new" in the $result variable
> declaration it should work fine.
> On 12/28/05, Erik Saline <esaline@xxxxxxxxxxxxxx> wrote:
> >
> >
> > ----- Original Message -----
> > From: Erik Saline
> > To: php-general@xxxxxxxxxxxxx
> > Sent: Wednesday, December 28, 2005 1:08 PM
> >
> >
> > I installed Apache, PHP, and Mysql during the Fedora Core 4
> installation.
> >
> > PHP 5.0.4
> > MYSQL 4.1.14
> >
> > I used php -i to show that mysql and mysqli were installed.
> > Configure Command => './configure' '--build=i386-redhat-linux'
> > '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config'
> '
> >
> > Here is the code.
> >
> > $result = new mysqli_connect('localhost', 'nobody', 'test',
> 'godisdead');
> >
> > Here is the error.
> >
> > PHP Fatal error: Class 'mysqli' not found in
> > /var/www/cgi-bin/db_connect.php on line 4,
> >
> >
> >
> > What am I missing?
> >
> >
> >
> > Erik
> >
> >
>
>
> --
> Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!
>
>


--
Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux