Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有一种跨平台兼容的方式来找出 OpenSSL 和 GnuPG 的主要可执行文件的路径?null显然,如果没有安装或检测到软件,就会出现这种情况。
null
您可以在每个路径(类似于 GunPG)$_ENV['PATH']中展开PATH_SEPARATOR并查找其中一个openssl或openssl.exe(在 Windows 上)。
$_ENV['PATH']
PATH_SEPARATOR
openssl
openssl.exe