Lines Matching refs:link
2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - try link to self
11 /* Prototype: bool symlink ( string $target, string $link );
12 Description: creates a symbolic link to the existing target with the specified name link
15 Description: Tells whether the given file is a symbolic link.
17 Prototype: bool link ( string $target, string $link );
18 Description: Create a hard link
21 Description: Gets information about a link
24 /* Variation 7 : Create soft/hard link to itself */
30 // link name used
40 echo "*** Create soft link to file and then to itself ***\n";
41 // create soft link to $filename
43 // create another link to $linkname
45 // delete link
48 echo "\n*** Create soft link to directory and then to itself ***\n";
49 // create soft link to $dirname
51 // create another link to $dirname
53 // delete link
56 echo "\n*** Create hard link to file and then to itself ***\n";
57 // create hard link to $filename
58 var_dump( link($filename, $linkname) );
59 // create another link to $linkname
60 var_dump( link($linkname, $linkname) );
61 // delete link
77 *** Create soft link to file and then to itself ***
83 *** Create soft link to directory and then to itself ***
89 *** Create hard link to file and then to itself ***
92 Warning: link(): File exists in %s on line %d