• ? lchown
  • linkinfo ?
  • 锟斤拷锟斤拷学院 www.cainiaoplay.com
  • PHP Manual
  • 锟侥硷拷系统锟斤拷锟斤拷
  • 锟斤拷锟斤拷一锟斤拷硬锟斤拷锟斤拷

link

(PHP 4, PHP 5, PHP 7)

link — 锟斤拷锟斤拷一锟斤拷硬锟斤拷锟斤拷

说锟斤拷

link ( string $target , string $link ) : bool

link() 锟斤拷锟斤拷一锟斤拷硬锟斤拷锟接★拷

锟斤拷锟斤拷

target

要锟斤拷锟接碉拷目锟疥。

link

锟斤拷锟接碉拷锟斤拷锟狡★拷

锟斤拷锟斤拷值

锟缴癸拷时锟斤拷锟斤拷 TRUE锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE锟斤拷

注锟斤拷

Note: Windows锟铰o拷锟矫癸拷锟斤拷锟斤拷要锟斤拷 elevated 模式锟斤拷锟叫o拷锟斤拷锟竭关憋拷 UAC锟斤拷

锟斤拷锟斤拷锟斤拷志

锟芥本 说锟斤拷
5.3.0 锟矫癸拷锟斤拷锟斤拷 Windows 平台锟铰匡拷始锟斤拷效锟斤拷Vista锟斤拷 Server 2008 锟斤拷锟斤拷甙姹撅拷锟斤拷锟�

锟斤拷锟斤拷

Example #1 Creating a simple hard link

<?php
$target 
= 'source.ext'; // This is the file that already exists
$link = 'newfile.ext'; // This the filename that you want to link it to

link($target, $link);
?>

注锟斤拷

Note: 锟剿猴拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷远锟斤拷锟侥硷拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥硷拷锟斤拷锟斤拷锟角匡拷通锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥硷拷系统锟斤拷锟绞的★拷

锟轿硷拷

  • symlink() - 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
  • readlink() - 锟斤拷锟截凤拷锟斤拷锟斤拷锟斤拷指锟斤拷锟侥匡拷锟�
  • linkinfo() - 锟斤拷取一锟斤拷锟斤拷锟接碉拷锟斤拷息