How to check if mcrypt extension exists in php

后端 未结 3 1009
野性不改
野性不改 2021-02-13 17:28

I would like to know the simplest and fastest PHP code line to check if mcrypt extension is available/installed.

There is a function that encrypts a string and first it

3条回答
  •  梦毁少年i
    2021-02-13 17:51

    If you are using a development environment like XXAMP, or WAMP, there should be a default "phpinfo" page. For example, in XXAMP it would be:

    http://localhost/dashboard/phpinfo.php

    You can also achieve this same screen by viewing a php file that has: phpinfo(); somewhere in the code.

    In this screen, simply search for the string "mcrypt support". If installed, you will see a box that says "enabled".

提交回复
热议问题