(PHP 4, PHP 5, PHP 7)
link — ����һ��Ӳ����
$target
, string $link
) : boollink() ����һ��Ӳ���ӡ�
targetҪ���ӵ�Ŀ�ꡣ
link���ӵ����ơ�
�ɹ�ʱ���� TRUE�� ������ʧ��ʱ���� FALSE��
Note: Windows�£��ù�����Ҫ�� elevated ģʽ���У����߹ر� 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: �˺�������������Զ���ļ����������ļ������ǿ�ͨ�����������ļ�ϵͳ���ʵġ�