Jump to content

Archived

This topic is now archived and is closed to further replies.

dadamssg87

how to check if you have Mcrypt?

Recommended Posts

Is there a line of code or something you can use to check if you have Mcrypt installed?

Share this post


Link to post
Share on other sites

You can try:

 

extension_loaded('mcrypt');

Or on the command line:

 

$ php -m

Share this post


Link to post
Share on other sites

if you are using the module version of PHP, you can also use phpinfo() for various names of extensions that PHP is compiled with

Share this post


Link to post
Share on other sites

From what I understand, function_exists() is the popular method

 

if( function_exists( 'mcrypt_module_open' ) )

 

for example

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.