isPhpCgiType() public static method

Returns true if PHP is executed as CGI type.
public static isPhpCgiType ( ) : boolean
return boolean true if PHP invoked as a CGI
示例#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);
     }
 }
示例#2
0
 public static function isSupported()
 {
     return Common::isPhpCliMode() && !Common::isPhpCgiType();
 }
示例#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();
 }