Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

www.xxx.con, curl post data lenght limit, www.xxx.con., Www.xxx.con, htaccess multiple authuserfile, www.xxxcon, wwwxxx100www, www...xxxcon, www.xxxcon, error 1025 mysql errno:150

Links

XODOX
Impressum

#1: mysqli class not found

Posted on 2005-12-29 03:06:01 by Erik Saline

------=_NextPart_000_00A7_01C60BD9.5C5CC430
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


----- Original Message -----=20
From: Erik Saline=20
To: php-general@lists.php.net=20
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 =3D> './configure' '--build=3Di386-redhat-linux' =
'--with-mysql=3Dshared,/usr' =
'--with-mysqli=3Dshared,/usr/bin/mysql_config' '

Here is the code.

$result =3D 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,=20



What am I missing?



Erik

------=_NextPart_000_00A7_01C60BD9.5C5CC430--

Report this message

#2: Re: mysqli class not found

Posted on 2005-12-29 03:56:53 by Unknown Unknown

------=_Part_61003_25943054.1135825013883
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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@mindspring.com> wrote:
>
>
> ----- Original Message -----
> From: Erik Saline
> To: php-general@lists.php.net
> 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 =3D> './configure' '--build=3Di386-redhat-linux'
> '--with-mysql=3Dshared,/usr' '--with-mysqli=3Dshared,/usr/bin/mysql_confi=
g' '
>
> Here is the code.
>
> $result =3D 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!

------=_Part_61003_25943054.1135825013883--

Report this message

#3: Re: mysqli class not found

Posted on 2005-12-29 18:25:51 by Erik Saline

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@gmail.com>
To: "Erik Saline" <esaline@mindspring.com>
Cc: <php-general@lists.php.net>
Sent: Wednesday, December 28, 2005 6:56 PM
Subject: Re: [PHP] 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@mindspring.com> wrote:
>
>
> ----- Original Message -----
> From: Erik Saline
> To: php-general@lists.php.net
> 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!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#4: Re: mysqli class not found

Posted on 2005-12-29 22:23:28 by Unknown Unknown

------=_Part_5883_22091176.1135891408542
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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@mindspring.com> 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=3Dmysqli.so to my php.ini
>
> Erik
>
> ----- Original Message -----
> From: "PHP Superman" <phpinfolist@gmail.com>
> To: "Erik Saline" <esaline@mindspring.com>
> Cc: <php-general@lists.php.net>
> Sent: Wednesday, December 28, 2005 6:56 PM
> Subject: Re: [PHP] 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@mindspring.com> wrote:
> >
> >
> > ----- Original Message -----
> > From: Erik Saline
> > To: php-general@lists.php.net
> > 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 =3D> './configure' '--build=3Di386-redhat-linux'
> > '--with-mysql=3Dshared,/usr' '--with-mysqli=3Dshared,/usr/bin/mysql_con=
fig'
> '
> >
> > Here is the code.
> >
> > $result =3D 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!

------=_Part_5883_22091176.1135891408542--

Report this message

#5: Re: mysqli class not found

Posted on 2005-12-29 22:30:09 by John Nichel

PHP Superman wrote:*
> 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 .

Follow the thread.

>>>I installed Apache, PHP, and Mysql during the Fedora Core 4

<casting the first stone>
*Example of why top-posting is bad
</casting the first stone>

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnichel@dotcomholdingsofbuffalo.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#6: Re: mysqli class not found

Posted on 2005-12-29 22:47:29 by John Nichel

PHP Superman wrote:
> Hold on, I heard that you can't run the mysql and mysqli php
> extensions , try removing the mysql extension if my other advice
> doesen't work
<snip>

Please reply to the list.

You can compile php with both.

From the manual :
http://us2.php.net/mysqli

> If you would like to install the mysql extension along with the mysqli extension you have to use the same client library to avoid any conflicts.

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnichel@dotcomholdingsofbuffalo.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message