mridang_agarwal Posted June 13, 2007 Share Posted June 13, 2007 Hi guys How can i get the PHP and MySQL version through code? How can i also check if the php_sockets.dll and php_curl.dll libraries are there? Quote Link to comment https://forums.phpfreaks.com/topic/55383-check-php-and-mysql-version-and-library/ Share on other sites More sharing options...
mmarif4u Posted June 13, 2007 Share Posted June 13, 2007 <?php phpinfo(); ?> Run this code it will give details. Quote Link to comment https://forums.phpfreaks.com/topic/55383-check-php-and-mysql-version-and-library/#findComment-273710 Share on other sites More sharing options...
mridang_agarwal Posted June 13, 2007 Author Share Posted June 13, 2007 phpinfo wont do the trick for me. I want my code to execute 'only' if the PHP and MySQL versions are greater than something. I need to get the version numbers programmatically. Quote Link to comment https://forums.phpfreaks.com/topic/55383-check-php-and-mysql-version-and-library/#findComment-273718 Share on other sites More sharing options...
Nhoj Posted June 13, 2007 Share Posted June 13, 2007 http://us.php.net/manual/en/function.phpversion.php Quote Link to comment https://forums.phpfreaks.com/topic/55383-check-php-and-mysql-version-and-library/#findComment-273720 Share on other sites More sharing options...
mridang_agarwal Posted June 13, 2007 Author Share Posted June 13, 2007 one down, 2 to go. How do i get the Mysql version? Quote Link to comment https://forums.phpfreaks.com/topic/55383-check-php-and-mysql-version-and-library/#findComment-273732 Share on other sites More sharing options...
mmarif4u Posted June 13, 2007 Share Posted June 13, 2007 Phpinfo has all details, R u check it. For mysql use this but phpinfo page has all data there about php and mysql versions. Try it. SELECT version(); Quote Link to comment https://forums.phpfreaks.com/topic/55383-check-php-and-mysql-version-and-library/#findComment-273736 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.