isPhpCgiType() public static méthode

Returns true if PHP is executed as CGI type.
public static isPhpCgiType ( ) : boolean
Résultat boolean true if PHP invoked as a CGI
Exemple #1
0
 private function checkCompatibility()
 {
     if (Common::isPhpCgiType()) {
         echo 'Piwik Console is known to be not compatible with PHP-CGI (you are using ' . php_sapi_name() . '). ' . 'Please execute console using PHP-CLI. For instance "/usr/bin/php-cli console ..."';
         echo "\n";
         exit(1);
     }
 }
Exemple #2
0
 public static function isSupported()
 {
     return Common::isPhpCliMode() && !Common::isPhpCgiType();
 }
Exemple #3
0
 /**
  * What is missing under windows? Detection whether a process is still running in Process::isProcessStillRunning
  * and how to send a process into background in start()
  */
 public function supportsAsync()
 {
     return Process::isSupported() && !Common::isPhpCgiType() && $this->findPhpBinary();
 }