dadamssg87 Posted July 5, 2011 Share Posted July 5, 2011 Is there a line of code or something you can use to check if you have Mcrypt installed? Quote Link to comment https://forums.phpfreaks.com/topic/241155-how-to-check-if-you-have-mcrypt/ Share on other sites More sharing options...
AbraCadaver Posted July 5, 2011 Share Posted July 5, 2011 You can try: extension_loaded('mcrypt'); Or on the command line: $ php -m Quote Link to comment https://forums.phpfreaks.com/topic/241155-how-to-check-if-you-have-mcrypt/#findComment-1238698 Share on other sites More sharing options...
dadamssg87 Posted July 5, 2011 Author Share Posted July 5, 2011 thanks! Quote Link to comment https://forums.phpfreaks.com/topic/241155-how-to-check-if-you-have-mcrypt/#findComment-1238699 Share on other sites More sharing options...
AyKay47 Posted July 5, 2011 Share Posted July 5, 2011 if you are using the module version of PHP, you can also use phpinfo() for various names of extensions that PHP is compiled with Quote Link to comment https://forums.phpfreaks.com/topic/241155-how-to-check-if-you-have-mcrypt/#findComment-1238701 Share on other sites More sharing options...
xyph Posted July 5, 2011 Share Posted July 5, 2011 From what I understand, function_exists() is the popular method if( function_exists( 'mcrypt_module_open' ) ) for example Quote Link to comment https://forums.phpfreaks.com/topic/241155-how-to-check-if-you-have-mcrypt/#findComment-1238703 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.