I'm just wondering if its possible to get mysql version using php, like the one shown in phpinfo
i think this could be useful when i need to use specific queries that are only available in certain versions of mysql
Take a look in install.php for function mysql_version_check($reqver) . 8)
thanks
the function i'm looking for is mysql_get_client_info (http://www.php.net/manual/en/function.mysql-get-client-info.php) and mysql_get_server_info() (http://ca.php.net/manual/en/function.mysql-get-server-info.php)
cant tell the difference between them though
i guess i'll just have to use both
*holds up hand*
Wait, wait... important difference here!!!
The *client* is PHP. This information usually is... useless. The server is the one you want.
-[Unknown]
errr install.php uses mysql_get_client_info and php manual says: mysql_get_client_info() returns a string that represents the client library version.
$curver = mysql_get_server_info() < mysql_get_client_info() ? mysql_get_server_info() : mysql_get_client_info();
Uses both.
-[Unknown]
lmao the fix all solution. I'm assuming it returns in tthen.