[wp-hackers] mysql_real_connect instead of mysql_connect

Ryan Boren ryan at boren.nu
Mon Feb 26 07:05:22 GMT 2007

On 2/25/07, Robert Deaton <false.hopes at gmail.com> wrote:
> PHP's mysql_connect will use the C wrapper mysql_real_connect if it is
> available. What this guy wants is to be able to pass a flag to the C
> mysql_real_connect through PHP's mysql_connect. The flag he wants to
> set can in fact be used, it is in the notes section of the
> documentation [1]. How he wants to have them placed in, I'm not sure,
> wpdb is loaded long before our plugins so there really is no way for a
> plugin to set that, and I am -1 on turning this on for everyone, for
> BC reasons.

wp-content/db.php can be used to create a custom $wpdb object if
someone wants to go that route.    Not as convenient as a plugin
filter, but possible.


More information about the wp-hackers mailing list