[wp-hackers] mysql_real_connect instead of mysql_connect

sai krishna hodude81 at yahoo.com
Mon Feb 26 07:18:04 GMT 2007


Great thanks to you all , I  thought to see, that is there a way for me to do something to fix this problem, because updating the table is must for my plugin to happen...
   
  Ill try all fixes you suggested.
   
   
  Thanks
  Sai Krishna
   
  
Ryan Boren <ryan at boren.nu> wrote:
  On 2/25/07, Robert Deaton 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.

Ryan
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers


 
---------------------------------
Have a burning question? Go to Yahoo! Answers and get answers from real people who know.


More information about the wp-hackers mailing list