Exemple #1
0
 public function __construct($parameter, $ENV)
 {
     parent::__construct($parameter, $ENV);
     $this->imgPath = $ENV['IMG'];
     $this->thumbPath = $ENV['THUMB'];
 }
Exemple #2
0
 public function __construct($parameter, $ENV)
 {
     parent::__construct($parameter, $ENV);
     set_time_limit(120);
     // 執行時間 120 秒 (傳輸過程可能很長)
     $this->userAgent = 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1)';
     // Just for fun ;-)
     $this->thumbLocalPath = $ENV['THUMB'];
     // 預覽圖本機位置
     $this->parameter = $parameter;
     // 將參數重新解析
     $this->parameter[0] = parse_url($this->parameter[0]);
     // URL 位置拆解
     /*
      [0] : 衛星程式遠端 URL 位置
      [1] : 是否使用 Transload 方式要求衛星程式抓取圖檔 (true:是 false:否,使用傳統 HTTP 上傳)
      [2] : 傳輸認證金鑰
      [3] : 遠端目錄對應 URL
      [4] : 預覽圖是否上傳至遠端 (true: 是, false: 否,使用本機檔案)
     */
 }