note 62011 deleted from ref.mysql by nlopess

From: Date: Fri, 17 Feb 2006 11:12:51 +0000
Subject: note 62011 deleted from ref.mysql by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-103897@lists.php.net to get a copy of this message
Note Submitter: richie at vtiger dot com ---- Here is how to get the mysql version using PHP <?php ob_start(); eval("phpinfo();"); $info = ob_get_contents(); ob_end_clean(); foreach(explode("\n", $info) as $line) { if(strpos($line, "Client API version")!==false) $mysql_version = trim(str_replace("Client API version", "", strip_tags($line))); } echo ' mysql version is ' .$mysql_version; ?> Hope it helps someone Richie

« previous php.notes (#103897) next »