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? 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 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! 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 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 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
Archived
This topic is now archived and is closed to further replies.