Quelle est la façon la plus simple pour vérifier si PHPsuExec ou suphp est activé, avec un script php

StackOverflow https://stackoverflow.com/questions/2140297

  •  22-09-2019
  •  | 
  •  

Question

Je dois vérifier si PHPsuExec ou suphp est activée. Comment puis-je faire cela dans un script php?

Était-ce utile?

La solution

La meilleure façon de vérifier si son permet est quelque chose comme ceci

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

espoir qui aide!

Cheers,

Dennis

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top