コード例 #1
0
 protected function runCli($route = 'cli', $paramters = array())
 {
     $indexcli = $this->getLoc() . '/building/indexcli.php';
     $paramters = base64_encode(json_encode($paramters));
     $phpbin = CFun::isWindows() ? 'php' : '/usr/local/php/bin/php';
     $cmd = $phpbin . ' ' . $indexcli . ' ' . $route . ' ' . $paramters;
     CFun::Process($cmd);
 }
コード例 #2
0
ファイル: MImage.php プロジェクト: MedicalProjectto/medical
 public function compressImage($src)
 {
     $cmd = $this->getConfig('sh_compress');
     CFun::Process($cmd);
 }