Re: Upgrading to version 4.

2003-01-13 Thread Zak Greant
On Mon, Jan 13, 2003 at 03:45:59PM -0300, Maximo Migliari wrote:
> 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.

  The PHP MySQL API will still work for you.

  Additionally, there is a new API that is currently in development that
  is intended to support the new features of MySQL like SSL connections,
  prepared statements, etc.

  Cheers!
-- 
 Zak Greant <[EMAIL PROTECTED]> | MySQL Advocate |  http://zak.fooassociates.com

MySQL Tip: Find the highest score for a given name
  mysql> SELECT name, max(score) FROM high_score GROUP BY name;

"Gosh, Batman. The nobility of the almost-human porpoise."
  --Robin, the Boy Wonder

-
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




Re: Upgrading to version 4.

2003-01-13 Thread Paul DuBois
At 23:45 +0100 1/13/03, Stefan Hinz, iConnect (Berlin) wrote:

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.


Huh?  PHP's mysql_connect() has been using mysql_real_connect() for
several years now.


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 
  Heesestr. 6, 12169 Berlin (Germany)
  Tel: +49 30 7970948-0  Fax: +49 30 7970948-3



-
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




Re: Upgrading to version 4.

2003-01-13 Thread Stefan Hinz, iConnect \(Berlin\)
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




Upgrading to version 4.

2003-01-13 Thread Maximo Migliari
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