CImage.php
public function linkToCacheFile($alias)
    {
        if ($alias === null) {
            $this->log("Ignore creating alias.");
            return $this;
        }

        if (is_readable($alias)) {
            unlink($alias);
        }

        $res = link($this->cacheFileName, $alias);

        if ($res) {
            $this->log("Created an alias as: $alias");
        } else {
            $this->log("Failed to create the alias: $alias");
        }

        return $this;
    }
public function linkToCacheFile($alias)
    {
        if ($alias === null) {
            $this->log("Ignore creating alias.");
            return $this;
        }

        if (is_readable($alias)) {
            unlink($alias);
        }

        $res = link($this->cacheFileName, $alias);

        if ($res) {
            $this->log("Created an alias as: $alias");
        } else {
            $this->log("Failed to create the alias: $alias");
        }

        return $this;
    }
public function linkToCacheFile ( $ alias ) { if ( $ alias === null ) { $ this -> log ( "Ignore creating alias." ) ; return $ this ; } if ( is_readable ( $ alias ) ) { unlink ( $ alias ) ; } $ res = link ( $ this -> cacheFileName , $ alias ) ; if ( $ res ) { $ this -> log ( "Created an alias as: $alias" ) ; } else { $ this -> log ( "Failed to create the alias: $alias" ) ; } return $ this ; }
Create a hard link, as an alias, to the cached file.

@param string $alias where to store the link,
filename without extension.

@return $this
Create a hard link as an alias to the cached file .