webent Posted June 16, 2008 Share Posted June 16, 2008 Hi, I was wanting to keep the mysql version dynamically updated on one of my pages... I use... echo (phpversion()); ...to get the phpversion... I was thinking that this would work... echo phpinfo(Client API version); ...but it doesn't... Any ideas anyone? Link to comment https://forums.phpfreaks.com/topic/110433-solved-getting-mysql-version-via-php/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 16, 2008 Share Posted June 16, 2008 http://php.net/mysql_get_server_info Link to comment https://forums.phpfreaks.com/topic/110433-solved-getting-mysql-version-via-php/#findComment-566616 Share on other sites More sharing options...
webent Posted June 16, 2008 Author Share Posted June 16, 2008 Thanks, worked great... Here's the final code... include_once "connection.php"; $mysql_version = mysql_get_server_info(); $search = array("-", "standard", "log"); $mysql_version = str_replace($search,"",$mysql_version); echo $mysql_version; Link to comment https://forums.phpfreaks.com/topic/110433-solved-getting-mysql-version-via-php/#findComment-566621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.