简体   繁体   English

找出使用PHP的OpenSSL和GnuPG的位置?

[英]Find out location of OpenSSL and GnuPG using PHP?

Is there a cross-platform compliant way of finding out the path to the main executables of OpenSSL and GnuPG? 是否有跨平台兼容的方法来查找OpenSSL和GnuPG的主要可执行文件的路径? Obviously this would be null if the software was not installed or detected. 显然,如果未安装或检测到该软件,则该null

您可以通过PATH_SEPARATOR炸开$_ENV['PATH']并在每个路径(类似于GunPG)中查找opensslopenssl.exe (在Windows上)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM