What is the most up to date production version of mysqli ? -


tough figure out if have date version of mysqli or not. use in web page :

$link = mysqli_connect($hostname, $username, $password, $dbname); printf("mysqli client library version: %s<br>\n", mysqli_get_client_info()); 

the output :

mysqli client library version: mysqlnd 5.0.10 - 20111026 - $id: e707c415db32080b3752b232487a435ee0372157 $ 

well , nice .. mysql rev 5.5.30 base on :

//connection database $dbhandle = mysql_connect($hostname, $username, $password)   or die("unable connect mysql"); echo "connected "; // print mysql server version printf("mysql server version: %s<br>\n", mysql_get_server_info()); 

which results in :

connected mysql server version: 5.5.30 

should expect see mysqli rev of 5.5.x or wrong?

any insight helpful.

this apache 2.4.4 , php 5.4.12 if helps :

$ /usr/local/bin/php --version  php 5.4.12 (cli) (built: feb 25 2013 19:25:44)  copyright (c) 1997-2013 php group zend engine v2.4.0, copyright (c) 1998-2013 zend technologies  $ /usr/local/bin/httpd -v server version: apache/2.4.4 (unix) server built:   feb 28 2013 10:46:58 

the mysqli extension has been built using mysql distribution version different (mysql) server version:

http://php.net/manual/en/mysqli.installation.php

you'll notice output refers mysqli client library version.

to obtain version of server distribution, can execute following query using same php version of php , mysqli extension: select @@version;

$mysqli = new mysqli('host', 'username', 'my_secret_password...'); $result = $mysqli->query('select @@version;');  print_r($result->fetch_array()); 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -