开发者

Find out location of OpenSSL and GnuPG using PHP?

开发者 https://www.devze.com 2023-01-15 23:39 出处:网络
Is there a cross-platform compliant way of finding out the path to the main executables of OpenSSL开发者_高级运维 and GnuPG? Obviously this would be null if the software was not installed or detected.

Is there a cross-platform compliant way of finding out the path to the main executables of OpenSSL开发者_高级运维 and GnuPG? Obviously this would be null if the software was not installed or detected.


You can explode $_ENV['PATH'] by PATH_SEPARATOR and look for either openssl or openssl.exe (on Windows) in each of the paths (analogous for GunPG).

0

精彩评论

暂无评论...
验证码 换一张
取 消