[wp-hackers] [Fwd: solved a little problem with mysql detection]

Robert Deaton false.hopes at gmail.com
Thu Apr 28 03:37:16 GMT 2005


Looks like a good patch to include to me, minus the exit and plus die('Could 
not load the mysql extension for mysql')

It also says we could use some better linking to mosquito.

On 4/27/05, Matt Mullenweg <m at mullenweg.com> wrote:
> 
> 
> 
> -------- Original Message --------
> Subject: solved a little problem with mysql detection
> Date: Sat, 09 Apr 2005 20:18:37 +0200
> To: helpout at wordpress.org
> 
> Hi,
> 
> I installed wordpress 1.5 and it kept complaining that php had no mysql
> support.
> Fortunately I could solve the problem by adding a few lines of code. I
> thought lets contribute this back.
> 
> Currently wp-settings.php includes the following lines:
> 
> if ( !extension_loaded('mysql') )
> die( 'Your PHP installation appears to be missing the MySQL
> which is required for WordPress.' );
> 
> I recommend something like the following which will load the module if
> its not loaded but available:
> 
> if (!extension_loaded('mysql'))
> {
> if (!dl('mysql.so')) {
> exit;
> }
> }
> 
> It solved the problem for me (I am running Ubuntu Linux Hoary with
> apache 2.0.53).
> 
> I like wordpress! keep up the good work!
> 
> Regards,
> 
> Herman Bos
> 
> ps. I hope I contacted the right e-mail adres. I couldn't find any bug
> reporting stuff on the site.
> 
> --
> Matt Mullenweg
> http://photomatt.net | http://wordpress.org
> http://pingomatic.com | http://cnet.com
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 



-- 
--Robert Deaton
http://somethingunpredictable.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/wp-hackers/attachments/20050428/cfb2e4ef/attachment.html


More information about the wp-hackers mailing list