PhpSuExec veya suPHP'ye etkin olup olmadığını denetlemek için basit yolu bir php script ile, ne

1 Cevap php

Ben phpSuExec veya suPHP'ye etkin olup olmadığını kontrol etmek gerekir. Bir php komut dosyası içinde bunu nasıl yapabilirim?

1 Cevap

Onun olanak olmadığını kontrol etmek easyiest yolu böyle bir şeydir

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";
}

Bu yardımcı olur umarım!

Alkış,

Dennis