(PHP 4, PHP 5)
symlink — 建立符号连接
$target
   , string $link
   )
    symlink() 对于已有的
   target 建立一个名为
   link 的符号连接。
  
   成功时返回 TRUE, 或者在失败时返回 FALSE.
  
参见 link() 来建立硬连接,以及 readlink() 和 linkinfo()。
target
     Target of the link.
link
     The link name.
   成功时返回 TRUE, 或者在失败时返回 FALSE.
  
| 版本 | 说明 | 
|---|---|
| 5.3.0 | This function is now available on Windows platforms (Vista, Server 2008 or greater). | 
Example #1 Create a symbolic link
<?php
$target = 'uploads.php';
$link = 'uploads';
symlink($target, $link);
echo readlink($link);
?>
Note: For Windows only: This function will only function if the system you run PHP from is Windows Vista/Windows Server 2008 or greater. Windows versions prior to that does not support symbolic links.