I need to check if PHPSUEXEC or SUPHP is enabled. How can I do that within a php script?
views:
149answers:
1
A:
The easyiest way to check if its enables is something like this
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";
}
hope that helps!
Cheers,
Dennis
thank you I can really make use of that
Dali
2010-01-28 04:54:32