protected function make()
  {
    if ( !$this->file && strpos($this->path,'http://') === 0 ){
      $d = getcwd();
      chdir(__DIR__);
      chdir('../tmp');
      $f = tempnam('.','image');
      try{
        $c = file_get_contents($this->path.$this->name);
        if ( file_put_contents($f, $c) ){
          if ( substr($this->name,-1) == '/' ){
            $this->name = substr($this->name,0,-1);
          }
          chmod($f, 0644);
          $this->file = $f;
          $this->path = getcwd();
        }
        else{
          $this->error = 'Impossible to get the file '.$this->path.$this->name;
        }
      }
      catch ( Error $e )
        { $this->error = 'Impossible to get the file '.$this->path.$this->name; }
      chdir($d);
    }
    return $this;
  }
protected function make()
  {
    if ( !$this->file && strpos($this->path,'http://') === 0 ){
      $d = getcwd();
      chdir(__DIR__);
      chdir('../tmp');
      $f = tempnam('.','image');
      try{
        $c = file_get_contents($this->path.$this->name);
        if ( file_put_contents($f, $c) ){
          if ( substr($this->name,-1) == '/' ){
            $this->name = substr($this->name,0,-1);
          }
          chmod($f, 0644);
          $this->file = $f;
          $this->path = getcwd();
        }
        else{
          $this->error = 'Impossible to get the file '.$this->path.$this->name;
        }
      }
      catch ( Error $e )
        { $this->error = 'Impossible to get the file '.$this->path.$this->name; }
      chdir($d);
    }
    return $this;
  }
protected function make ( ) { if ( ! $ this -> file && strpos ( $ this -> path , 'http://' ) === 0 ) { $ d = getcwd ( ) ; chdir ( __DIR__ ) ; chdir ( '../tmp' ) ; $ f = tempnam ( '.' , 'image' ) ; try { $ c = file_get_contents ( $ this -> path . $ this -> name ) ; if ( file_put_contents ( $ f , $ c ) ) { if ( substr ( $ this -> name , - 1 ) == '/' ) { $ this -> name = substr ( $ this -> name , 0 , - 1 ) ; } chmod ( $ f , 0644 ) ; $ this -> file = $ f ; $ this -> path = getcwd ( ) ; } else { $ this -> error = 'Impossible to get the file ' . $ this -> path . $ this -> name ; } } catch ( Error $ e ) { $ this -> error = 'Impossible to get the file ' . $ this -> path . $ this -> name ; } chdir ( $ d ) ; } return $ this ; }
Creates a temporary file in tmp directory.

@todo of adjusting
@return file
Creates a temporary file in tmp directory .