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
ファイル: Console.php プロジェクト: pombredanne/ArcherSys
 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
ファイル: Console.php プロジェクト: josl/CGE-File-Sharing
 public static function isSupported()
 {
     return Common::isPhpCliMode() && !Common::isPhpCgiType();
 }
コード例 #3
0
ファイル: CliMulti.php プロジェクト: TensorWrenchOSS/piwik
 /**
  * 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();
 }