★ wanayoo — archive 1999 http://fr.php.net/manual/ru/function.link.phpNouvelle recherche | Portail wanayoo
PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<is_writeablelinkinfo>
view the version of this page
Last updated: Sat, 19 Feb 2005

link

(PHP 3, PHP 4 , PHP 5)

link -- Create a hard link

Description

bool link ( string target, string link)

link() creates a hard link. Возвращает TRUE в случае успешного завершения, FALSE в случае возникновения ошибки.

Замечание: Эта функция не применима для работы с удаленными файлами, поскольку файл должен быть доступен через файловую систему сервера.

Замечание: Для Windows-платформ эта функция не реализована.

See also the symlink() to create soft links, and readlink() along with linkinfo().



add a note add a note User Contributed Notes
link
mmap at upt dot org
15-May-2004 01:28
I think kop is confused regarding the semantics of link's argument order.  The user's comment states that target should not already exist, suggesting that it is the target that is being created.  As with the UNIX hardlink, ln(1), the target is the existing file.  I think kop meant to say php's link() will return an error if the second parameter, the link being created, already exists.

Also, as with the UNIX system call link will fail if the link being created exists on a different filesystem.
kop at meme dot com
25-Sep-2003 11:20
Note that link() will not work if the target already exists, at least as of php 4.1.2.

<is_writeablelinkinfo>
 Last updated: Sat, 19 Feb 2005
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This mirror generously provided by: nexen.net
Last updated: Mon Feb 21 05:12:00 2005 CET