note 83318 deleted from function.mysql-get-server-info by felipe

From: Date: Fri, 23 May 2008 23:53:15 +0000
Subject: note 83318 deleted from function.mysql-get-server-info by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-139674@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- small fix: ob_start(); phpinfo(INFO_MODULES); $info = ob_get_contents(); ob_end_clean(); $info = stristr($info, 'Client API version'); preg_match('/[1-9].[0-9].[1-9][0-9]/', $info, $match); $gd = $match[0]; echo 'MySQL: '.$gd.' <br />'; version can have Zero in it :-) Like: 4.0.23

« previous php.notes (#139674) next »