Maximo,

> My company's website is running version 3.23.53a, and the main client
that
> uses MySQL is PHP 4.2.3.  Will mysql_connect() no longer work in
> PHP?  Although this manual entry is talking about the C API functions,
I
> assume PHP uses these to communicated with MySQL.  Perhaps I might be
> wrong, but I would like to just double check.

PHP's mysql_connect() is just a wrapper around the C API mysql_connect.
As the manual says:

"This function is deprecated. It is preferable to use
mysql_real_connect() instead."

I assume that PHP 4.2.3 is already using mysql_real_connect(). If this
is not the case, I'm quite sure (if no one here disagrees ;) that PHP 5
will.

And I'm really sure that it will always be called mysql_connect() in
PHP, just to keep things easy.

Regards,
--
  Stefan Hinz <[EMAIL PROTECTED]>
  Geschäftsführer / CEO iConnect GmbH <http://iConnect.de>
  Heesestr. 6, 12169 Berlin (Germany)
  Tel: +49 30 7970948-0  Fax: +49 30 7970948-3

----- Original Message -----
From: "Maximo Migliari" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 7:45 PM
Subject: Upgrading to version 4.


> In the MySQL manual, under
http://www.mysql.com/doc/en/Upgrading-from-3.23.html
>
> it says:
> -----------
> The old C API functions mysql_drop_db, mysql_create_db, and
mysql_connect
> are not supported anymore, unless you compile MySQL with
> CFLAGS=-DUSE_OLD_FUNCTIONS. Instead of doing this, it is preferable to
> change the client to use the new 4.0 API.
> -----
>
> My company's website is running version 3.23.53a, and the main client
that
> uses MySQL is PHP 4.2.3.  Will mysql_connect() no longer work in
> PHP?  Although this manual entry is talking about the C API functions,
I
> assume PHP uses these to communicated with MySQL.  Perhaps I might be
> wrong, but I would like to just double check.
>
> Thanks,
> Maximo.
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to