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.
我需要检查是否启用了 PHPSUEXEC 或 SUPHP。我怎样才能在 php 脚本中做到这一点?
检查其是否启用的最简单方法是这样的
ob_start(); phpinfo(); $sTmp ob_get_contents(); ob_end_clean(); $iPos = strripos($sTmp, "PHPSUEXEC"); //not sure how the string in phpinfo is spelled!! if($iPos === false) { echo "not found"; } else { echo "found"; }
希望有帮助!
干杯,
丹尼斯