Home > PHP > Function > SSH2 > ssh2_sftp_symlink()

ssh2_sftp_symlink()

ssh2_sftp_symlink - Create a symlink

Syntax

bool ssh2_sftp_symlink (resource $sftp, string $target, string $link)

Arguments

  • sftp - An SSH2 SFTP resource opened by ssh2_sftp().
  • target - Target of the symbolic link.
  • link

Description

Creates a symbolic link named link on the remote filesystem pointing to target.

Version

PHP PECL ssh2 >= 0.9.0

Return value

Returns TRUE on success or FALSE on failure.